Skip to content

Simple Recursive-Decent Parsing Implmentation for Evaluating Expressions in C

License

Notifications You must be signed in to change notification settings

taehwanno/comp-recursive-decent-parsing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comp-recursive-decent-parsing

Simple Recursive-Decent Parsing Implementation for Evaluating Expressions in C

Grammer

E  -> T E`
E` -> ε
E1 -> + T E`
T  -> F T`
T` -> ε
T` -> * F T`
F  -> ( E )
F  -> num

Get Started

$ git clone https://github.com/taehwanno/comp-recursive-decent-parsing
$ cd comp-recursive-decent-parsing
$ gcc main.c
$ ./a.out

Execution Results

./a.out
1 + 2
3
./a.out
2 + 3 * (4+2)
20

License

MIT © Taehwan Noh

About

Simple Recursive-Decent Parsing Implmentation for Evaluating Expressions in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages