Skip to content

Commit 67260dd

Browse files
committed
Corrected warning in grammar +
1 parent b23fc89 commit 67260dd

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

src/main/antlr/JPTreeParser.g

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ functioncall
417417
| #(FRAMEDOWN (LEFTPAREN ID RIGHTPAREN)? )
418418
| #(FRAMELINE (LEFTPAREN ID RIGHTPAREN)? )
419419
| #(FRAMEROW (LEFTPAREN ID RIGHTPAREN)? )
420-
| #(GETCODEPAGES (funargs)? )
420+
| #(GETCODEPAGES (options{greedy=true;}: funargs)? )
421421
| #(GUID LEFTPAREN (expression)? RIGHTPAREN )
422422
| #(IF expression THEN expression ELSE expression )
423423
| ldbnamefunc
@@ -609,7 +609,6 @@ noargfunc
609609
| GENERATEPBESALT
610610
| GENERATERANDOMKEY
611611
| GENERATEUUID
612-
| GETCODEPAGES
613612
| GATEWAYS
614613
| GOPENDING
615614
| ISATTRSPACE

src/main/antlr/proparse.g

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,17 +1436,18 @@ class_type_name
14361436
enumstate
14371437
: e:ENUM^ type_name2 (FLAGS)? block_colon
14381438
defenumstate
1439-
enum_end
1440-
state_end
1439+
enum_end state_end
14411440
{sthd(##,0);}
14421441
;
14431442

14441443
defenumstate
1445-
: DEFINE^ ENUM (enum_member)+ state_end { sthd(##, ENUM); }
1444+
: DEFINE^ ENUM (options{greedy=true;}: enum_member)+
1445+
state_end
1446+
{ sthd(##, ENUM); }
14461447
;
14471448

14481449
enum_member
1449-
: type_name2 ( EQUAL ( NUMBER | type_name2 (COMMA type_name2)*))?
1450+
: type_name2 (EQUAL ( NUMBER | type_name2 (COMMA type_name2)*))?
14501451
;
14511452

14521453
enum_end: END^ (ENUM)? ;
@@ -1844,9 +1845,7 @@ createwidgetpoolstate
18441845
;
18451846
18461847
currentvaluefunc
1847-
: CURRENTVALUE^ LEFTPAREN sequencename (COMMA identifier)? // logical name
1848-
(COMMA expression)? // multitenant
1849-
RIGHTPAREN
1848+
: CURRENTVALUE^ LEFTPAREN sequencename (options{greedy=true;}: COMMA identifier)? (options{greedy=true;}: COMMA expression)? RIGHTPAREN
18501849
;
18511850
18521851
// Basic variable class or primitive datatype syntax.
@@ -3189,8 +3188,8 @@ nextpromptstate
31893188
;
31903189

31913190
nextvaluefunc
3192-
: NEXTVALUE^ LEFTPAREN sequencename (COMMA identifier)? // logical name
3193-
(COMMA expression)? // multitenant
3191+
: NEXTVALUE^ LEFTPAREN sequencename (options{greedy=true;}: COMMA identifier)? // logical name
3192+
(options{greedy=true;}: COMMA expression)? // multitenant
31943193
RIGHTPAREN
31953194
;
31963195

0 commit comments

Comments
 (0)