Skip to content

oxaoo/lexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lexer

🔢 java lexer

What it is

  • Lexical analyzer for a subset of Java language.
  • Syntax analyzer.
  • Generator of the intermediate language by syntax tree.
  • Generator of assembler code.

All modules are written in Java language. There is an ability to look the graphical view of syntax tree.

How it works

  • Lexical analyzer works like a state machine, parses source code and generates the list of the tokens.
  • Syntax analyzer is based on the Operator-precedence grammars. Tables for grammars are read from txt files. Syntax analyzer gets tokens and tries to make the syntax tree.
  • Generator of the intermediate language constructs the flat list of tetrads by syntax tree.
  • Generator of target code generates asm code by the tetrads.

Contributors

oxaoo, FatherOctber, dydus0x14

About

🔢 java lexer (compiler)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages