Skip to content

Commit

Permalink
Add alias support to dsl
Browse files Browse the repository at this point in the history
  • Loading branch information
Idane committed Jan 11, 2021
1 parent 2a04f93 commit 6b60efa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lexer grammar CrudDslLexer;

fragment ID_LETTER : [a-z] | [A-Z] | '_' ;
fragment ID_LETTER : [a-z] | [A-Z] | '_' | DOT | FORWARD_SLASH;
fragment DIGIT : [0-9] ;

O_CURLY: '{';
Expand All @@ -10,6 +10,8 @@ C_SQUARE: ']';
O_ROUND: '(';
C_ROUND: ')';
COMMA: ',';
FORWARD_SLASH: '/';
DOT: '.';

QUERY: 'query';
WHERE: 'where';
Expand Down Expand Up @@ -45,4 +47,4 @@ PLUS: '+';

LINE_COMMENT: '#' ~( '\r' | '\n' )* -> channel(HIDDEN);
WS: [ \n\t\r]+ -> skip;
ID: ID_LETTER (ID_LETTER | DIGIT)*;
ID: (ID_LETTER (ID_LETTER | DIGIT)*);

0 comments on commit 6b60efa

Please sign in to comment.