geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r571057 - /geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/SyntaxParser.g
Date Thu, 30 Aug 2007 07:12:43 GMT
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



Mime
View raw message