Skip to content

CiccioTecchio/ParserTopDown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TopDownParser

A top down parser for this grammar

G = {
N = {Program, Stmt, Expr, Term},
T = {ID, IF, THEN, RELOP, NUMBER, ;, ASSIGN},
S = Program,
P = {
Program -> Stmt Program1
Program1 -> SEMICOL Stmt Program1 | epsilon
Stmt -> IF Expr THEN Stmt | ID ASSIGN Expr
Expr -> Term Expr1
Expr1 -> RELOP Term | epsilon
Term -> ID | NUMBER
}
}

About

A top down parser which uses tokens of this excercise

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages