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 → *
| /
| +
| -
-
Notifications
You must be signed in to change notification settings - Fork 5
pattersonzUTD/Example-Project
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published