Projetos
Ver no GitHub
mgechev/tiny-compiler
Sobre
Um avaliador e compilador pequeno de expressões aritméticas.
Linguagens e ambientes de execuçãoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- +1
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalTiny Interpreter and Compiler
A tiny interpreter and compiler which shows the basics of compiler development.
For more details see the source or my blog post "Implementing a Simple Compiler on 25 Lines of JavaScript"
Along the implementation you can find sample (and simple) implementations of:
- Lexer which produces a list of tokens (module for lexical analysis).
- Parser which produces an Abstract Syntax Tree (AST) (module for syntax analysis).
- Interpreter which traverses and evaluates the AST.
- EBNF grammar.
- Recursive Descent Parsing.
You want even smaller compiler?
Here it is!
License
MIT
Explore projetos relacionados
Carregando…
