You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2007/08/30 09:12:43 UTC

svn commit: r571057 - /geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/SyntaxParser.g

Author: jdillon
Date: Thu Aug 30 00:12:42 2007
New Revision: 571057

URL: http://svn.apache.org/viewvc?rev=571057&view=rev
Log:
The parser does not need to support multiline

Modified:
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/SyntaxParser.g

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/SyntaxParser.g
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/SyntaxParser.g?rev=571057&r1=571056&r2=571057&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/SyntaxParser.g (original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/SyntaxParser.g Thu Aug 30 00:12:42 2007
@@ -42,7 +42,7 @@
 //
 
 compilationUnit
-	:	( expression ( ';' | NewLine ) | expression EOF )*
+	:	( expression ( ';' | NewLine | EOF ) )*
 	;
 
 expression
@@ -76,7 +76,7 @@
 	;
 
 PlainStringLiteral
-	: 	( ~( ';' | '\'' | '"' | WhiteSpace | NewLine ) )+
+	: 	( ~( ';' | '\'' | '"' | WhiteSpace ) )+
 	;
 
 OpaqueStringLiteral