Skip to content

VallarasuS/TinyAST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyAST

Tiny AST is a baby step in building a lisp compiler that's why the name tiny.

Language

Only a subset of Lisp scheme is accounted in this program and uses prefix notation.

Here is an example statement

(operator operand operand)

(+ 5 3)

What does Tiny AST do?

It is a lexer for a subset of Lisp called Lispy Calculator, it understands the language syntax produces an Abstract Syntax Tree with language tokens, which can used for parsing or direct intrepretation.

for the above example the AST will look like

            +

         /      \

       5          3

About

Tiny AST is a baby step in building a lisp compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages