-
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
Fix DOMAIN conflict on MacOS #45
base: main
Are you sure you want to change the base?
Conversation
We should actually see why math.h is even included and clean that up. |
Also we use '_' prefixx for conflicts (like _EOF). So let's follow that practice if it is really needed. But I would like to remove useless includes and get rid of this error |
ac7ed3b
to
e3b59fc
Compare
@kaikalur I looked at the clang verbose output and the math library is not being included explicitly. It's probably part of the clang runtime. |
No runtime should not matter. I think the issue is in main.cc where we include file.h |
@kaikalur removing |
e3b59fc
to
9270f2b
Compare
@kaikalur I replaced |
9270f2b
to
77e951c
Compare
This code was a couple of weekend hacking back in 2020 lol so it's quality shows. Grammar/AST part should be decent though. So feel free to fixup the code the way you see fit. |
I just added a makefile that separates the main from the parser library. If you can setup a buck build or cmake that will be great :) |
@kaikalur I will be adding some CMake build files later. The background is that we want to use the parser here to parse expressions in Velox tests. See the discussion here: facebookincubator/velox#5589 |
I invoked |
We can add methods like ParseExpression to ParserClient class that I just started working on: |
@kaikalur Sounds good! I am not a Meta employee. So I cannot access your link. But I think we are aligned on the goal here. |
On MacOS, I see the following error when building.