Commit a5017b0b authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Improve tolerance for grammars with multiple semicolons

parent 4adc3cc5
......@@ -2,7 +2,7 @@
 
# Resource object code
#
# Created: Mon Mar 16 20:49:26 2015
# Created: Sat Mar 28 16:25:38 2015
# by: The Resource Compiler for PySide (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2015-03-16 20:49:29
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2015-03-28 16:25:41
import sys
from antlr3 import *
......
This diff is collapsed.
......@@ -1036,7 +1036,7 @@ via : VIA state_entry_point_name
end
: (cif? hyperlink? COMMENT STRING)? SEMI
: (cif? hyperlink? COMMENT STRING)? SEMI+
-> ^(COMMENT cif? hyperlink? STRING)?;
......
......@@ -35,7 +35,7 @@ dcl nosep OutStr := '';
/* CIF TASK (403, 213), (457, 78) */
TASK for each in a(2, length(a) - 1):
result := result // (if length(result) > 0 then sep else nosep fi) // each
endfor;
endfor;;;;
/* CIF PROCEDURECALL (567, 306), (129, 35) */
CALL writeln(result);
/* CIF TASK (554, 356), (155, 53) */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment