-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Vaxscan #4049
Vaxscan #4049
Conversation
@whcox603 . I have 4 vaxen. This is a amazing! |
(1) You need a desc.xml so the grammar can be tested. Try this:
(2) Please reformat you grammar using antlr-format so that it adheres to the coding standard. (3) You will need to rename "alt" to "alt_". It does not work for Cpp. The easiest is to just use trrename ( (4) The test cases cover 92% of the grammar. Excellent. |
I added the desc.xml and fixed the 'alt' issue. I did format using the Antlr4Formater. I did not realize there were multiple formatters. Is antlr-format the official formatter? I have installed it on my machine, but seem to have some issues running it. I'll work on that today. Do you have "coverage map" that could share with me? I would be happy to look into adding a few more tests to fill in the holes. |
The grammars-v4 Wiki has a section on the formatting. https://github.com/antlr/grammars-v4/wiki#is-there-a-coding-standard-for-antlr4-grammars . The main reason antlr-format is used is because it is configurable, while the Antlr4Formatter is not. The antlr-format package is in TypeScript, so it is integrated in Mike's Antlr4 VS Code extension. I am sure there are other formatters as well.
The Trash toolkit implements the code coverage with a heat map overlay of the grammar used per input. See trcover. |
Note, if you are trying to be complete in listing a lexer rule for all string literals in a parser rule (i.e., we could rewrite |
Let me go back and take a look. |
It appears that I don't actually need the Lexer rules for the the string literals as they are never referred to in the grammar itself. I removed them. I am unable to run the antlr-format tool. It is probably something I am doing wrong with the download/setup. I entered an issue with antlr-format, but have not heard back yet. Could I impose upon you to run the grammar through antlr-format and email it back to me or attach it to comment? bill |
Reformatted: vaxscan.g4.txt |
I updated vaxscan.g4. Thank you for the assist. I will pursue getting antlr-format working in my environment as well the trash tools. bill |
I added pom.xml based on copying and modifying an existing one. I installed maven and it runs cleanly. bill [INFO] Scanning for projects... |
I'm not sure what the warning is about, but it likely doesn't matter as the parser testing still works identically to that for the trgen-generated driver/tester. Anyway, the repo workflow no longer tests using the Maven tester. Testing via this method is a convenience, not necessary, because the tester using an older version of Antlr, and does not test any target other than Java. Ideally, if you add a pom.xml, you should probably change the "top-level pom.xml" so that "mvn clean test" at the repo root will include testing of vaxscan. |
ok. Thanks. I will explore the trgen-generated driver/tester. I there anything else I need to do at this point? bill |
Is there any chance this could be merged this week? Has a build been done? Is there any issue that I should be aware of? Thanks, |
There still has not been a build queued up for this PR. "2 workflows awaiting approval Can someone add some privileges to me for this repo so I can get this done? |
I will defer to Tom Everett on this one, but I’m not opposed to you having
privileges on the grammar repo
Dictation in use. Please excuse homophones, malapropisms, and nonsense.
…On Wed, May 1, 2024 at 12:52 PM Ken Domino ***@***.***> wrote:
Is there any chance this could be merged this week? Has a build been done?
Is there any issue that I should be aware of?
Thanks, bill
There still has not been a build queued up for this PR. "2 workflows
awaiting approval
This workflow requires approval from a maintainer." @teverett
<https://github.com/teverett> @KvanTTT <https://github.com/KvanTTT>
@ericvergnaud <https://github.com/ericvergnaud> @parrt
<https://github.com/parrt>
Can someone add some privileges to me for this repo so I can get this done?
—
Reply to this email directly, view it on GitHub
<#4049 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLUWI4RJLZC6SBISR2KOLZAFBYVAVCNFSM6AAAAABGGN3IE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZGAYTCMBRGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'm not sure how to interpret the build results. I do see one System Exception complaining that it can't figure out the name of the vaxscan grammar. And I see some errors about not being able to find the java executable when running tests for the Csharp target, but I don't see any indication what the problem was. |
@whcox603 Please "sync fork" in Github then update your branch for your PR. It's caused by a couple of problems with the performance check code, which was fixed in the last week. |
Please forgive my ignorance. I did a sync fork in github for my fork, but I am unsure what else I need to do to "update my branch." |
In Github, navigate to your repo. Then: (1) Select the branch from the pull-down menu on the left hand side. (2) Click on "sync fork". When you are done, write a comment to @teverett to redo the build (if it doesn't already kick off). |
@teverett I have re-sync'd. It would be greatly appreciated if you could kick off another build. |
Looking into the build... |
Sorry, the branch for the PR is still 29 commits behind. Please check github. Or may I suggest Github Desktop. You need to get the branch completely up to date otherwise it won't build. |
My bad. It now says it is up to date. bill |
@teverett Please start the workflow for this PR. Ty. |
All worked fine except MacOS and Dart. Hangs on 4th input file. Normally tredog would kill a stalled process but it didn't because the OS crashed. The github mac servers are a pain because they are unreliable. Dart works fine elsewhere. @teverett I think it's good to go. It'll likely all pass fine on the merge. |
@whcox603 thanks! |
This is an ANTLR4 parser for the VAX SCAN programming language. See the README.md for a brief description of the language and its history.
I have included 22 small examples that were included with the shipping software kit.
The parser was run through the antlr4-formatter.