Skip to content

pattersonzUTD/Example-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example-Project

Program → StmtList
StmtList → Stmt
| Stmt StmtList
Stmt → Decl
| Asn
| ReadVar
| PrintVar
| FunStmt
Decl → Type id OptionalAsn ;
| Type id [ intlit ] ;
| Type id (ArgList) { StmtList return Expr ; }
| void id (ArgList) { StmtList }
ArgList → Arg ArgList
| λ
Arg → Type id
| Type id [ ]
Type → var
| varF
Asn → id = Expr ;
ReadVar → read id ;
PrintVar → print id ;
FunStmt → id ( Params ) ;
| id ( ) ; Params → Expr , Params | Expr OptionalAsn → = Expr
| λ
Expr → Expr BinaryOp Expr
| intlit
| float
| id
| id ( Params ) | id ( ) Binaryop → *
| /
| +
| -