-
Notifications
You must be signed in to change notification settings - Fork 11
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
Devel #17
Devel #17
Conversation
Samuel-Tyler
commented
Jan 26, 2020
•
edited
Loading
edited
- Improve parser
- Add DefaultType
- Allow circular Choices
- Bug fixes and testing improvements
- Add conan
- Add fast_ber_view
- Reorganize test cases
- Add optimized BerContainers, use as a base for ber types
- Correct comment parsing issue
Add REAL type support
@@ -1914,7 +1914,7 @@ re2c:define:YYCURSOR = "context.cursor"; | |||
{ context.location.columns(context.cursor - start); return yylex(context); } | |||
"--" ([\-]?[^\r\n\-])*[\-]? | |||
{ context.location.columns(context.cursor - start); return yylex(context); } | |||
"/*" ([^\*]|[\*][^/])* "*/" | |||
"/*" ([^\*]|([\*]+[^\*\/]))*[\*]+ "/" |
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.
I'm sure it's a good fix, do you have an example of the problem we could add to testfiles?
https://github.com/Samuel-Tyler/fast_ber/tree/master/testfiles
(Just to prevent it happening in future)
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.
Another small point is that the file src/compiler/autogen_copy/asn_compiler.hpp
must be updated when .yacc is updated. This is a copy used for windows builds where bison does not run.
I will push an updated file.
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.
I'm sure it's a good fix, do you have an example of the problem we could add to testfiles?
https://github.com/Samuel-Tyler/fast_ber/tree/master/testfiles
(Just to prevent it happening in future)
A comment written like this made the compiler segfault:
/************
-- OIDs
************/
Adding a space before the closing tag made the compiler working without an issue:
/************
-- OIDs
*********** */
The new regex accepts both comments without segfault
@kurkpitaine Are you happy for this to me merged or do you have pending changes? I would like to make a release 0.4 |
I'm ok to merge the modifications 👍 |