Skip to content
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

Merged
merged 147 commits into from
Apr 19, 2020
Merged

Devel #17

merged 147 commits into from
Apr 19, 2020

Conversation

Samuel-Tyler
Copy link
Owner

@Samuel-Tyler Samuel-Tyler commented Jan 26, 2020

  • 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

@@ -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); }
"/*" ([^\*]|[\*][^/])* "*/"
"/*" ([^\*]|([\*]+[^\*\/]))*[\*]+ "/"
Copy link
Owner Author

@Samuel-Tyler Samuel-Tyler Apr 18, 2020

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)

Copy link
Owner Author

@Samuel-Tyler Samuel-Tyler Apr 18, 2020

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.

Copy link
Collaborator

@kurkpitaine kurkpitaine Apr 19, 2020

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

@Samuel-Tyler
Copy link
Owner Author

Samuel-Tyler commented Apr 19, 2020

@kurkpitaine Are you happy for this to me merged or do you have pending changes?

I would like to make a release 0.4

@kurkpitaine
Copy link
Collaborator

@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 👍

@Samuel-Tyler Samuel-Tyler merged commit 3aad811 into master Apr 19, 2020
@Samuel-Tyler Samuel-Tyler deleted the devel branch April 19, 2020 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants