All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kazuki.v0.store.index.query.Query__.g Maven / Gradle / Ivy

The newest version!
lexer grammar Query;
@members {
  @Override
  public void reportError(RecognitionException e) {
    throw new IllegalArgumentException(e);
  }
}
@header {package io.kazuki.v0.store.index.query;}

AND : 'and' ;
EQ : 'eq' ;
NE : 'ne' ;
LT : 'lt' ;
LE : 'le' ;
GT : 'gt' ;
GE : 'ge' ;
IN : 'in' ;
TRUE : 'true' ;
FALSE : 'false' ;
NULL : 'null' ;
COMMA : ',' ;
LPAREN : '(' ;
RPAREN : ')' ;

// $ANTLR src "/Volumes/DD1/Work/sunnycode/workspace/kazuki/target/checkout/kazuki-impl/src/main/antlr/io/kazuki/v0/store/index/query/Query.g" 91
IDENT
  : ('_'|'a'..'z'|'A'..'Z') ('_'|'a'..'z'|'A'..'Z'|'0'..'9')*
  ;

// $ANTLR src "/Volumes/DD1/Work/sunnycode/workspace/kazuki/target/checkout/kazuki-impl/src/main/antlr/io/kazuki/v0/store/index/query/Query.g" 95
WHITESPACE : ( '\t' | ' ' | '\r' | '\n'| '\u000C' )+ 	{ $channel = HIDDEN; } ;

// $ANTLR src "/Volumes/DD1/Work/sunnycode/workspace/kazuki/target/checkout/kazuki-impl/src/main/antlr/io/kazuki/v0/store/index/query/Query.g" 97
fragment DIGIT : '0'..'9' ;
// $ANTLR src "/Volumes/DD1/Work/sunnycode/workspace/kazuki/target/checkout/kazuki-impl/src/main/antlr/io/kazuki/v0/store/index/query/Query.g" 98
INTEGER : '-'? (DIGIT)+ ;
// $ANTLR src "/Volumes/DD1/Work/sunnycode/workspace/kazuki/target/checkout/kazuki-impl/src/main/antlr/io/kazuki/v0/store/index/query/Query.g" 99
DECIMAL : '-'? (DIGIT)+ ('.' (DIGIT)+ )? ;


// $ANTLR src "/Volumes/DD1/Work/sunnycode/workspace/kazuki/target/checkout/kazuki-impl/src/main/antlr/io/kazuki/v0/store/index/query/Query.g" 102
STRING_LITERAL
@init{StringLiteral sl = new StringLiteral();}
  :
  '"'
  ( escaped=ESC {sl.appendEscaped(escaped.getText());} | 
    normal= ~('"'|'\\'|'\n'|'\r') {sl.append(normal);} )* 
  '"'    
  {setText("\"" + sl.toString() + "\"");}
  ;

// $ANTLR src "/Volumes/DD1/Work/sunnycode/workspace/kazuki/target/checkout/kazuki-impl/src/main/antlr/io/kazuki/v0/store/index/query/Query.g" 112
fragment
ESC : '\\' ( 'n' | 't' | '"' | '\\' ) ;





© 2015 - 2025 Weber Informatics LLC | Privacy Policy