Projects icon indicating copy to clipboard operation
Projects copied to clipboard

Compiler

Open justanothercoder opened this issue 8 years ago • 1 comments

Implementing a compiler is a big challenge, but nowadays it can be built by parts.

For example:

  1. Lexer - can be implemented with flex.
  2. Parser - can be implemented with bison.
  3. AST processing - this part is almost always specific for each concrete project, so it should be done by hand.
  4. Code generation and optimization - LLVM provides great framework for this.

You can gradually replace parts with your own implementations.

Also, that problem involves designing architecture of compiler, so it can help you with OOP style or functional programming design, if you want.

justanothercoder avatar Mar 13 '16 10:03 justanothercoder

lsbasi_part1_compiler_interpreter compiler

Please refer to details on how to implement compiler using java here Modern Compiler Implementation

sbelidhe avatar Nov 13 '17 14:11 sbelidhe