-
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
New grammar request: VB.NET #3967
Comments
VB6 does not have classes. Not sure why it's even in the examples/ directory if it's not VB6 valid. Perhaps we need a new version for VB.NET? |
You are right, I was confused between VB6 and VB.NET. I wrongly thought that Do you know that if ANTLR4 have a grammar for VB.NET? |
Pretty sure we don't have one. It should be added to the "to do" list. If you can, rename the title of the issue to something like "New grammar request: VB.NET". |
I have a mostly complete grammar for VBA 7.1, which might be close to .Net PYPI has a python module for the Lexer and Parser as well: I’m using this to create a Linting tool and precompiler for Office VBA. |
I tried to parse
https://pypi.org/project/antlr4-vba/ seems to use the same vba grammar as in this repository, and parsing |
VBA files have a required module header similar to:
since the example is missing that, it will not parse. |
Thanks for the tip, but adding the header |
and the module portion of the file does not start with the word class. maybe this won’t work, sorry. |
I tried to parse the
vb6/examples/form1.vb
file and got the same error invb6/examples/form1.vb.errors
, which is:The
vb6/examples/form1.vb
file contains:Anyway we can fix this?
The text was updated successfully, but these errors were encountered: