From efe475e18dfdbafb479e4ada21523a03b78a9a14 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Mon, 15 Apr 2013 00:49:53 -0700 Subject: [PATCH] Grammar progress --- d.grm | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 59 insertions(+), 7 deletions(-) diff --git a/d.grm b/d.grm index 6d4ed6a..5232f21 100644 --- a/d.grm +++ b/d.grm @@ -117,7 +117,16 @@ intLiteral = {Digit}+ ::= | - ::= + ::= ';' + | + | + + ::= + | + | + | + + ::= | | | @@ -127,9 +136,6 @@ intLiteral = {Digit}+ | | | - | - | - | | | | @@ -141,11 +147,18 @@ intLiteral = {Digit}+ ::= 'final' - ::= 'case' ':' + ::= 'case' ':' - ::= 'case' ':' '...' 'case' ':' + ::= 'case' ':' '...' 'case' ':' - ::= 'default' ':' + ::= 'default' ':' + + ::= + | + + ::= ';' + | + | ::= 'continue' identifier ';' | 'continue' ';' @@ -221,6 +234,45 @@ intLiteral = {Digit}+ | 'is' '(' identifier ':' ',' ')' | 'is' '(' identifier '==' ',' ')' + ::= + | ',' + | ',' + + ::= + | + | + | + | + + ::= identifier + | identifier + | identifier + | identifier + + ::= ':' + + ::= '=' + + ::= + | + | + | + + ::= ':' + + ::= '=' '__FILE__' + | '=' '__MODULE__' + | '=' '__LINE__' + | '=' '__FUNCTION__' + | '=' '__PRETTY_FUNCTION__' + | '=' + +::= 'alias' identifier + + alias ::= : : : = = + + ::= 'this' + ::= | 'struct' | 'union'