Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 449 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 449 Bytes

The Mah Language

A beautiful language

how to run it?

# first generate language by running python ./generate_parser.py <input_file>

python ./generate_parser.py ./mah.lang

# import parser, lexer, and ir_generator from compiler module and implement
# required actions

# then get the result how ever you want

python ./mah.py ./examples/input.mh

# or you can see the generated code with
python ./mah.py build ./examples/input.mh