-
Notifications
You must be signed in to change notification settings - Fork 164
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
Bool production #231
Comments
I think it would not be hard. However, it is quite easy to roll your own |
@dmjio I've written a scripting language with bnfc and booleans are just a string literal e.g.
|
@TheMaverickProgrammer, thanks, I ended up just going with |
I think we could make
or whatever concrete syntax they want for the truth values. This is similar to how lists are treated (using Haskell's names for the list constructors). |
A more general solution is #267. |
This might be a huge oversight on my part. I noticed there are terminals for
String
,Integer
,Double
, etc. I was wondering if there was one forBool
. My current LBNF has rules in this form (see below), but sinceBool
wasn't present I had to define my own. Would it be hard to addBool
?The text was updated successfully, but these errors were encountered: