mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 02:03:45 -04:00
Allow ANTLR 3.5 to work
This involves a harmless backwards-compatible adjustment to the grammar. I can't explain why this is necessary but this might help. http://stackoverflow.com/questions/20057063/follow-set-in-is-undefined-in-generated-parser
This commit is contained in:
parent
34cc45b12d
commit
7cf35d1e8b
34
src/RSP.g
34
src/RSP.g
@ -43,43 +43,43 @@ strcrit : FIELD strop STR -> ^(strop FIELD STR)
|
|||||||
| FIELD NOT strop STR -> ^(NOT ^(strop FIELD STR))
|
| FIELD NOT strop STR -> ^(NOT ^(strop FIELD STR))
|
||||||
;
|
;
|
||||||
|
|
||||||
strop : EQUAL
|
strop : equal=EQUAL
|
||||||
| INCLUDES
|
| includes=INCLUDES
|
||||||
| STARTSW
|
| startsw=STARTSW
|
||||||
| ENDSW
|
| endsw=ENDSW
|
||||||
;
|
;
|
||||||
|
|
||||||
intcrit : FIELD intop INT -> ^(intop FIELD INT)
|
intcrit : FIELD intop INT -> ^(intop FIELD INT)
|
||||||
| FIELD NOT intop INT -> ^(NOT ^(intop FIELD INT))
|
| FIELD NOT intop INT -> ^(NOT ^(intop FIELD INT))
|
||||||
;
|
;
|
||||||
|
|
||||||
intop : EQUAL
|
intop : equal=EQUAL
|
||||||
| LESS
|
| less=LESS
|
||||||
| GREATER
|
| greater=GREATER
|
||||||
| LTE
|
| lte=LTE
|
||||||
| GTE
|
| gte=GTE
|
||||||
;
|
;
|
||||||
|
|
||||||
datecrit: FIELD dateop datespec -> ^(dateop FIELD datespec)
|
datecrit: FIELD dateop datespec -> ^(dateop FIELD datespec)
|
||||||
;
|
;
|
||||||
|
|
||||||
dateop : BEFORE
|
dateop : before=BEFORE
|
||||||
| AFTER
|
| after=AFTER
|
||||||
;
|
;
|
||||||
|
|
||||||
datespec: dateref
|
datespec: dateref
|
||||||
| INT dateintval dateop dateref -> ^(dateop dateref INT dateintval)
|
| INT dateintval dateop dateref -> ^(dateop dateref INT dateintval)
|
||||||
;
|
;
|
||||||
|
|
||||||
dateref : DATE
|
dateref : date=DATE
|
||||||
| TODAY
|
| today=TODAY
|
||||||
;
|
;
|
||||||
|
|
||||||
dateintval
|
dateintval
|
||||||
: DAY
|
: day=DAY
|
||||||
| WEEK
|
| week=WEEK
|
||||||
| MONTH
|
| month=MONTH
|
||||||
| YEAR
|
| year=YEAR
|
||||||
;
|
;
|
||||||
|
|
||||||
QUOTE : '"';
|
QUOTE : '"';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user