-
Notifications
You must be signed in to change notification settings - Fork 83
Ability to run parsers for symbols like A*, A+, {A ","}+ and A? without introducing a dummy non-terminal #2809
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
Merged
Merged
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
af6a3fc
code example for how to run a parser for a regular symbol.
jurgenvinju e9d3e42
added more tests for top-level regulars
jurgenvinju 0e8a278
add layout in the right places
jurgenvinju bafeabd
added wrappers for outermost regular symbol parse methods
jurgenvinju af99a40
Merge branch 'main' into feat/toplevel-regular-parsers
jurgenvinju 085cad1
minor improvements but not there yet
jurgenvinju 2303c4d
progress with method names, but not done yet
jurgenvinju c62eae8
improved class and method names to avoid ambiguity
jurgenvinju 8fea7a7
added debug interface for generated parsers
jurgenvinju 48d0ab6
Merge branch 'main' into feat/toplevel-regular-parsers
jurgenvinju a9c3bde
typo in comment
jurgenvinju 537a1b2
Merge branch 'main' into feat/toplevel-regular-parsers
jurgenvinju ec1ab47
improved accuracy of error locations of lamdba's and parse functions,…
jurgenvinju 978fcf2
tweaking
jurgenvinju 3033ee7
fix parser generator to line up the top-level regular expression corr…
jurgenvinju 3c62dc1
added * lists for + lists and + lists for * lists, for top-level list…
jurgenvinju a6bd15a
can now parse multiple elements too. have a double wrapper though
jurgenvinju 1519662
Merge branch 'main' into feat/toplevel-regular-parsers
jurgenvinju a663305
Merge branch 'main' into feat/toplevel-regular-parsers
jurgenvinju d7eefe2
removed broken debug code
jurgenvinju caff6a5
with a hint from @arnoldlankamp removed the double nesting of regular…
jurgenvinju a5bc529
deal with degenerate case of top-level regular node
jurgenvinju 80e829e
start collecting tests for the new feature of parsing toplevel regulars
jurgenvinju 737922c
added missing case for empty nonterminal
jurgenvinju c0faaaa
fixed broken alt case
jurgenvinju 67b4e01
fixed broken alt case
jurgenvinju af5b684
fixed parser names
jurgenvinju ccf6285
fixed sequence factory
jurgenvinju 886806c
fixed parsing the empty symbol with a funny workaround
jurgenvinju c05501b
removed debug stuff
jurgenvinju 3f78995
Merge branch 'main' into feat/toplevel-regular-parsers
jurgenvinju 2dc8cc0
Revert "removed debug stuff"
jurgenvinju b8b7ed4
removed debug println and debug flag set to false
jurgenvinju 82289a9
added concrete syntax tests
jurgenvinju 5ec88db
fixed a layout bug in Symbols.rsc for sequences
jurgenvinju a3303a2
debugging concrete syntax with holes
jurgenvinju 63d1574
added more concrete syntax, some of which still fail
jurgenvinju bf69d53
re-enabled holes, but it is still not parsing
jurgenvinju 24afbb3
Adds support to the parser for handling epsilon start nodes.
arnoldlankamp 8813e05
Removes, now obsolete, workaround related to epsilon start symbols.
arnoldlankamp 0380d94
got hole parsing back online. some corner cases still need fixing
jurgenvinju a43b072
commented failing tests for empty and seq nodes for debugging purposes
jurgenvinju 518e2be
empty test works after re-compile
jurgenvinju 7b1f9db
re-enabled tests
jurgenvinju 2959b91
Merge branch 'main' into feat/toplevel-regular-parsers
jurgenvinju efc7074
disabled debug
jurgenvinju 0cc0e24
Fixed layout recognition
PieterOlivier ef1690f
minor
jurgenvinju 092064c
commented out temporary fix
jurgenvinju 7585aff
reenabled empty test
jurgenvinju 67ff2e1
[maven-release-plugin] prepare release v0.43.0-RC13-PREVIEW-REGULAR-P…
jurgenvinju c4b1ce4
[maven-release-plugin] prepare for next development iteration
jurgenvinju 76ec5e6
bootstrapped rascal parser with new method names
jurgenvinju b6147b7
introduced constants for key matches on non-terminal parse method names
jurgenvinju 2ec10c9
fix pom
jurgenvinju 542a149
[maven-release-plugin] prepare release v0.43.0-RC14-PREVIEW-REGULAR-P…
jurgenvinju 004e99c
[maven-release-plugin] prepare for next development iteration
jurgenvinju 34baed3
resolved issue with final layout for substring formatters
jurgenvinju 8f3d2ab
fixed watcher exclude
jurgenvinju 72faa09
[maven-release-plugin] prepare release v0.43.0-RC15-PREVIEW-REGULAR-P…
jurgenvinju 7fabcda
[maven-release-plugin] prepare for next development iteration
jurgenvinju cd57531
Merge branch 'main' into feat/toplevel-regular-parsers
jurgenvinju File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3,12 +3,12 @@ | |
|
|
||
| <groupId>org.rascalmpl</groupId> | ||
| <artifactId>rascal</artifactId> | ||
| <version>0.43.0-RC13-SNAPSHOT</version> | ||
| <version>0.43.0-RC16-PREVIEW-REGULAR-PARSERS-SNAPSHOT</version> | ||
| <packaging>jar</packaging> | ||
|
|
||
|
Comment on lines
-6
to
8
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this version change should not be merged to mainbranch, it shoudl be reset to
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks |
||
| <scm> | ||
| <developerConnection>scm:git:ssh://git@github.com/usethesource/rascal.git</developerConnection> | ||
| <tag>v0.43.0-RC11</tag> | ||
| <tag>v0.43.0-RC14-PREVIEW-REGULAR-PARSERS</tag> | ||
| </scm> | ||
|
|
||
| <!-- dependency resolution configuration (usethesource) --> | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as this shows up for everyone, shall we drop these from the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes