From: pimjager Date: Thu, 7 Apr 2016 10:55:36 +0000 (+0200) Subject: grammatica aangepast aan leipe nieuwe functietypes X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;ds=sidebyside;h=908f65c33b8d7849f0aef30090f2bd2be52793fa;p=cc1516.git grammatica aangepast aan leipe nieuwe functietypes --- diff --git a/grammar/grammar.txt b/grammar/grammar.txt index f78b879..6e9549d 100644 --- a/grammar/grammar.txt +++ b/grammar/grammar.txt @@ -1,8 +1,8 @@ ::= * + ::= '(' * ')' ['::' * + '}' - ::= + '->' - | + ::= ['->' ] //in semantische analyse checken dat Void indien + //aanwezig laatste type in de rij is ::= 'if' '(' ')' '{' * '}' ['else' '{' * '}'] | 'while' '(' ')' '{' * '}' | '=' ';'