-
Notifications
You must be signed in to change notification settings - Fork 174
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
recreate yacc and lex source code #586
Comments
Yes, it's a hack from a while back. See #561 (comment) We should really look to replace this old PointsGarden parser |
I meant to add - you should be able to |
@andyward I hope there are tests with the short unicode encoding, if not I will try to add them. I need to make sure that the regex I have does not break anything with that. If not, I will add some. |
unfortunately, the change I did to the regex broke some tests. I believe the correct approach would be to try to detect Invalid strings, by adding a new Token type (Tokens.STRING_INVALID) in the lex file. Are these the only valid encodings for IFC?
Basically what I am trying to come up with is a regex which can be used to detect invalid strings. This regex would be run before the regular string regex, Thank you! |
Hello,
I have enhanced the string regular expresion used in StepP21Lex.lex to fix a problem that we have encountered a few times with certain IFC files.
So I ran the MAKEPARSER.BAT batch file to recreate the yacc and lex source files. But I had compile errors. So I undid my changes and ran the MAKEPARSER.BAT batch file without any changes. It seems to have run fine:
But the generated StepP21Lex.cs files has some changes in it that lead to compile errors:
Longs have been turned into ints:
Also an ifdef is lost:
Should all that be fixed manually or am I missing something or doing something wrong?
The text was updated successfully, but these errors were encountered: