Skip to content

The text analysis with Python: lexical analysis, syntax analysis (parser + parsing tree). The simplest semantic analysis and the code-gen. Compiler outputs files in the build folder. Example program program.txt file compile to res_assembler.s is a file after processing by all system components and can start on the machine.

Notifications You must be signed in to change notification settings

eiire/php_small_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Запуск compiler.py производится с ключами --dump-tokens, --dump-ast, --dump-asm.

* Последнее сгеннерирует код на ассемблере и скомпилирует программу, которая будет лежать в каталоге проекта на названием program.

Пример запуска скомпилированной программы:

$ ./program

About

The text analysis with Python: lexical analysis, syntax analysis (parser + parsing tree). The simplest semantic analysis and the code-gen. Compiler outputs files in the build folder. Example program program.txt file compile to res_assembler.s is a file after processing by all system components and can start on the machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published