forked from marcohu/rules_antlr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format grammar files with Antlr4Formatter
- Loading branch information
1 parent
f8fbbb7
commit 28c65a7
Showing
38 changed files
with
3,881 additions
and
2,813 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
grammar Hello; | ||
r : 'hello' ID ; // match keyword hello followed by an identifier | ||
ID : [a-z]+ ; // match lower-case identifiers | ||
WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines | ||
|
||
r | ||
: 'hello' ID | ||
; // match keyword hello followed by an identifier | ||
|
||
ID | ||
: [a-z]+ | ||
; // match lower-case identifiers | ||
|
||
WS | ||
: [ \t\r\n]+ -> skip | ||
; // skip spaces, tabs, newlines | ||
|
Oops, something went wrong.