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

Use C++ functions to parse numeric literals and check bounds #108

Merged
merged 1 commit into from
Apr 2, 2018

Conversation

brianegge
Copy link
Contributor

What's going on with hexpr.lex.C? Was it up to date with hexpr.l?

@@ -3,8 +3,7 @@
cd `dirname ${BASH_SOURCE[0]}`

# generate the LALR(1) parser and token definitions
bison -d -ohexpr.parse.C hexpr.y
${BISON:-bison} -d -ohexpr.parse.C hexpr.y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)

@@ -1,2 +1,4 @@
*.sw?
/build/
CMakeCache.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good idea. I always build out of a different directory for some reason.

@kthielen
Copy link
Contributor

kthielen commented Apr 2, 2018

Maybe different flex versions; this parser needs some renovation work at some point but it is good to have this fix in mind for any future work (so we don't silently accept and truncate any literal input).

@kthielen kthielen merged commit f522614 into morganstanley:master Apr 2, 2018
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