Skip to content

A compiler (lexer, parser, and assembler) for a simple programming language, jLang.

Notifications You must be signed in to change notification settings

AkshatJawne/jLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jLang Compiler

jLang is a simple programming language that I created, it features an easy-to-understand syntax as follows:

term = <input> | variable | literal
expression = term | term + term | ...
rel = term < term | ...
instr = variable = expression | <if> rel <then> instr | <goto> :label | <output> term | :label

Here is an example of a program in jLang:

m = input
j = 1
:start
output j
j = j + 2
if j < m then goto :start
if j < 15 then goto :end
output 42
:end

About

A compiler (lexer, parser, and assembler) for a simple programming language, jLang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published