From 4b1fa735020db50a74432026107834b2df1fc719 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Sat, 27 Feb 2016 14:23:23 +0100 Subject: [PATCH] part of the grammar --- src/grammar.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/grammar.txt diff --git a/src/grammar.txt b/src/grammar.txt new file mode 100644 index 0000000..ca25bb0 --- /dev/null +++ b/src/grammar.txt @@ -0,0 +1,24 @@ + ::= ['hd'|'tl'|'fst'|'snd] + | + | + | + | 'False' + | 'True' + | '(' ')' + | '(' [] ')' + | '[]' + | '(' ',' ')' + ::= | e + ::= '+' | '-' | '*' | '/' | '%' | '==' | '<' | '>' | '<=' | '>=' + | '!=' | '&&' | '||' | ':' + + ::= [',' ActArgs] + + ::= ( | 'var') '=' ';' + + ::= 'Int' + | 'Bool' + | 'Char' + | '(' Type ',' Type ')' + | '[' Type ']' + | -- 2.20.1