Repository navigation
Move to compiled parser generator #2984
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
Open
rodinaarssen
wants to merge
58
commits into
main
Choose a base branch
from
feature/compiled-parser-generator
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
b1a56fb
Added rascal-generated-java as submodule.
rodinaarssen 227be2d
Merge remote-tracking branch 'origin/main' into feature/compiled-pars…
rodinaarssen 9b72a11
Wired up the compiled parser generator
rodinaarssen 265025b
Merge remote-tracking branch 'origin/main' into feature/compiled-pars…
rodinaarssen c539808
Correctly adding layout before looking for parse functions
rodinaarssen ffbb276
Using URIUtil function to convert from URL to loc
rodinaarssen 7173397
Using cwd as project root for RascalExecutionContex (cf. ShellEvaluat…
rodinaarssen a7a3ae5
Disabled registration of project locations based on all project livin…
rodinaarssen 599b45f
Unstubbed monitor-related methods in RascalExecutionContext
rodinaarssen 9245d3f
Enabled registration of the project/target resolvers for the current …
rodinaarssen e209d73
Using new generated parser generator
rodinaarssen a4a1f4b
Removed unused constructor argument
rodinaarssen 28b124c
Merge branch 'main' into feature/compiled-parser-generator
rodinaarssen 9fcca3a
Updated workflow to check out submodules
rodinaarssen d4e7398
Using fully qualified name
rodinaarssen 642f621
Fixed stack overflow during tests
rodinaarssen fc08253
Updated workflow to check out submodules once more
rodinaarssen d645407
Updated workflow to check out submodules once more
rodinaarssen eaaba0d
Merge remote-tracking branch 'origin' into feature/compiled-parser-ge…
rodinaarssen aedf7a3
Removed local path from the parser generator compilation module and a…
rodinaarssen dbd2c8b
Added license to code generation
rodinaarssen 1056f3a
Updated lib:// location to project://
rodinaarssen bf51142
Updated submodule
rodinaarssen 5d92fcc
No longer calling getValue() on the same IStrings twice in succession
rodinaarssen ecfde2a
Added comment to newly added maven plugin
rodinaarssen 1dfa9a8
Merge remote-tracking branch 'origin' into feature/compiled-parser-ge…
rodinaarssen c62cc5c
Merge remote-tracking branch 'origin/main' into feature/compiled-pars…
rodinaarssen 2518d64
Avoiding exceptions during code generation
rodinaarssen c71eef1
Bumped compiled parser generator
rodinaarssen ea53f61
Revert "Avoiding exceptions during code generation"
rodinaarssen 5ca1a70
Reverted to previous version of generated parser generator
rodinaarssen d7b89de
Bumped submodule pointer. Submodule now has a DEVELOPERS.md
rodinaarssen f85b4fc
Added DEVELOPERS.md
rodinaarssen 4165ee8
Bumped submodule after a typo fix
rodinaarssen ee9bbc9
Small tweaks to DEVELOPERS.md
rodinaarssen 11ee5c4
Merge remote-tracking branch 'origin/main' into feature/compiled-pars…
rodinaarssen 409c733
Bumped compiled parser generator
rodinaarssen 1e3d2a5
Merge remote-tracking branch 'origin' into feature/compiled-parser-ge…
rodinaarssen 91630e6
Merge remote-tracking branch 'origin' into feature/compiled-parser-ge…
rodinaarssen c1d868b
Merge remote-tracking branch 'origin/main' into feature/compiled-pars…
rodinaarssen c09fa94
Bumped compiled parser generator
rodinaarssen 3c707ba
Added explicit type to local variable
rodinaarssen b7d8ba0
Reusing stream from RascalExecutionContext
rodinaarssen b28eb83
Updated DEVELOPERS.md after @DavyLandman feedback
rodinaarssen 1f78948
Added pointer to other repository in DEVELOPERS.md
rodinaarssen 14e02f2
Made generate sources entry module more generic
rodinaarssen 4c6930e
Bumped compiled submodule. tpls have been removed from there
rodinaarssen 305f296
Merge remote-tracking branch 'origin/main' into feature/compiled-pars…
rodinaarssen 149e79a
Fixed the main function for code generation
rodinaarssen 4240e2f
Bumped compiled parser generator
rodinaarssen 7cad4df
Merge remote-tracking branch 'origin/main' into feature/compiled-pars…
rodinaarssen 4c3dd7b
Implemented ambiguous tree support similar to error tree support (cf.…
rodinaarssen 9620c83
Implemented ambiguous tree support similar to error tree support (cf.…
PaulKlint 4848059
Merge remote-tracking branch 'origin/main' into feature/compiled-pars…
rodinaarssen c60b8f3
Merge remote-tracking branch 'refs/remotes/origin/feature/compiled-pa…
rodinaarssen 59e5d77
Merge remote-tracking branch 'origin/main' into feature/compiled-pars…
rodinaarssen 6eae2d3
Removed function argument during generation
rodinaarssen b5a9b20
Merge branch 'main' into feature/compiled-parser-generator
rodinaarssen 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [submodule "generated"] | ||
| path = generated | ||
| url = git@github.com:usethesource/rascal-generated-java.git |
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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Rascal Developer Manual | ||
|
|
||
| ## Working with the repository | ||
|
|
||
| The Rascal project makes use of Java code that is generated from Rascal modules. | ||
| To avoid pollution of the Rascal repository itself, the generated code is not committed to this repository, but to a [separate repository](https://github.com/usethesource/rascal-generated-java). | ||
| This secondary repository is "linked in" using Git's submodule system, in the `generated` directory in the root of the repository. | ||
|
|
||
| To start working on Rascal, check out the Rascal repository (`git clone --recurse-submodules git@github.com:usethesource/rascal.git`). | ||
| Note: for existing (local) repositories, initialize the submodule through `git submodule update --init`. | ||
|
|
||
| By default, `git` operations (such as `git pull`) will reel in changes to submodules, but will not actually alter the content of submodule directories. | ||
| To bring the contents up to date, run `git submodule update` after a pull, or add the `--recurse-submodules` to `git pull`. | ||
| To automate this, set the configuration option `submodule.recurse` to `true` for the Rascal project. | ||
|
|
||
| ## Updating the submodule | ||
|
|
||
| Instructions for updating the submodule contents can be found in the `DEVELOPERS.md` in the `rascal-generated-java` project. | ||
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.
Let's also explain how changes to that directory need to happen?
Or what's not possible.
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.
The
rascal-generated-javarepo has aDEVELOPERS.mdas well. I added a reference here