Skip to content

A mini jit compiler for a while language, written in C, targetting x86_64 GNU/Linux

Notifications You must be signed in to change notification settings

alexj136/minijit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniJIT

A mini jit compiler for a while language, written in C, targetting x86_64 GNU/Linux.

Language Syntax

PROG ::= main(ARGS) { COMM } FUNC
FUNC ::= NAME(ARGS) { COMM } FUNC | ε
COMM ::= while EXPR do { COMM } | NAME := EXPR | COMM; COMM | return EXPR
EXPR ::= INT | EXPR + EXPR | EXPR - EXPR | EXPR * EXPR | NAME(EXPRS) | NAME
ARGS ::= NAME ARGSCONT | ε
ARGSCONT ::= , NAME ARGSCONT | ε
EXPRS ::= EXPR EXPRSCONT | ε
EXPRSCONT ::= , EXPR EXPRSCONT | ε
NAME ::= [a-zA-Z_][a-zA-Z0-9_]*

About

A mini jit compiler for a while language, written in C, targetting x86_64 GNU/Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published