Repository navigation
Move to compiled parser generator - #2984
rodinaarssen wants to merge 58 commits into
Conversation
This repository currently contains the compiled parser generator
…g in the parent of the current project
d72e5bb to
4d53bca
Compare
|
excellent! It would also be interesting to see the difference in loading time of the parser generator between the two modes. Additionally, I think we (temporarily) need license headers on the generated Java code. Otherwise the code in the generated files is not open-source and (commercial) users can be confronted with unnecessary liabilities. It might be practical to include this as an optional feature in the Rascal compiler? |
4d53bca to
9fcca3a
Compare
jurgenvinju
left a comment
There was a problem hiding this comment.
I think that a README.md close to the generated folder with the relevant git commands to keep the submodule up-to-date would be good. Similarly for generating new code a small README entry would be good.
|
@jurgenvinju Give me a license text and I will add it (together with a warning that this generated code and a timestamp) to the generated code. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2984 +/- ##
========================================
+ Coverage 46% 47% +1%
- Complexity 6933 7067 +134
========================================
Files 852 852
Lines 69363 69318 -45
Branches 10112 10106 -6
========================================
+ Hits 32173 32934 +761
+ Misses 34756 33790 -966
- Partials 2434 2594 +160 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DavyLandman
left a comment
There was a problem hiding this comment.
Looks good, but we should (to extend on @jurgenvinju's points):
- Put a developers.md file on rascal repo on how to clone & pull
- put a developers.md file on the generated repo that explains how to update the generated source code and what steps to follow in git
- explain how to use released version instead of current main?
| 1. Check out the Rascal repository (e.g., `git clone git@github.com:usethesource/rascal.git`). | ||
| 2. Initialize the submodule (`git submodule update --init`). The `generated` directory should now be filled. | ||
|
|
||
| ## Updating the submodule |
There was a problem hiding this comment.
Let's also explain how changes to that directory need to happen?
Or what's not possible.
There was a problem hiding this comment.
The rascal-generated-java repo has a DEVELOPERS.md as well. I added a reference here
…rser-generator' into feature/compiled-parser-generator
|



In this PR, the compiled parser generator is introduced. The generated code is linked in as a git submodule (
generated) and replaces the evaluator that used to run the parser generator.A benchmark in which the grammar rules and parser of Rascal itself were calculated 100 times in succession showed:
Inspired by an earlier experiment by @jurgenvinju