Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add incremental parsing support #2527

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contributors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,4 @@ YYYY/MM/DD, github id, Full name, email
2019/02/06, ralucado, Cristina Raluca Vijulie, ralucris.v[at]gmail[dot]com
2019/03/13, base698, Justin Thomas, justin.thomas1@gmail.com
2019/03/18, carlodri, Carlo Dri, carlo.dri@gmail.com
2019/04/06, dberlin, Daniel Berlin, dberlin@dberlin.org

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
grammar TestIncrementalBasic;
options {
incremental = true;
}
program: (identifier | digits)+;
identifier: IDENT;
digits: DIGITS;
// We deliberately put these on a hidden channel rather than skip - it helps
// make the cases weirder by making the parser's token indexes non-contiguous.
WS: [ \t\r\n\u000C]+ -> channel(HIDDEN);
IDENT: [A-Za-z]+;
DIGITS: [0-9]+;
Loading