repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
some small fixes
[cc1516.git]
/
grammar
/
grammar.txt
diff --git
a/grammar/grammar.txt
b/grammar/grammar.txt
index
ce6732b
..
f78b879
100644
(file)
--- a/
grammar/grammar.txt
+++ b/
grammar/grammar.txt
@@
-1,3
+1,5
@@
+<Prog> ::= <VarDecl>* <FunDecl>+
+
<FunDecl> ::= <id> '(' <Type>* ')' ['::' <FunType] '{' <VarDecl>* <Stmt>+ '}'
<FunType> ::= <Type>+ '->' <VoidType>
| <VoidType>