-
Notifications
You must be signed in to change notification settings - Fork 9
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
basically a full rewrite #29
Merged
Merged
Commits on Aug 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d27514b - Browse repository at this point
Copy the full SHA d27514bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b80436a - Browse repository at this point
Copy the full SHA b80436aView commit details
Commits on Aug 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2ccbab9 - Browse repository at this point
Copy the full SHA 2ccbab9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4906f5 - Browse repository at this point
Copy the full SHA b4906f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d01e54 - Browse repository at this point
Copy the full SHA 6d01e54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c72adf - Browse repository at this point
Copy the full SHA 1c72adfView commit details -
An escaped backspace just before the closing quote would be recognized as an escaped quote and the rest of your program becomes a giant string. Fennel on its own doesn't really deal with escape sequences, but the underlying Lua platform does. We can't really know its version so we just support the latest, 5.4.
Configuration menu - View commit details
-
Copy full SHA for 8240f73 - Browse repository at this point
Copy the full SHA 8240f73View commit details -
Configuration menu - View commit details
-
Copy full SHA for c743dbe - Browse repository at this point
Copy the full SHA c743dbeView commit details
Commits on Aug 20, 2021
-
Numbers can start or end on just a dot (.003, 100.) Fixing just that would be boring, so here's some new features: * hexadecimal literals: 0xdeadbeef * exponents, decimal and hexadecimal: 1e10, 0x1p10 * underscores as numerical separators: 1_000.000_03 The first two are Lua features. Hexadecimal integer literals were introduced in Lua 5.1 and hexadecimal float literals in Lua 5.2. There have been no further additions up to Lua 5.4. The last feature is all Fennel and it's pretty insane. For example, here are some ways to represent the number 32: * 0x20 * 0x10p1 * +_0_x_1_0_p_+_1 The last one doesn't even look like a number. For my own sanity, I only allow underscores between digits and not directly after the dot, the exponent "character" (the 'e', 'E', 'p', 'P') or any sign.
Configuration menu - View commit details
-
Copy full SHA for 2c88c59 - Browse repository at this point
Copy the full SHA 2c88c59View commit details
Commits on Aug 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c467c02 - Browse repository at this point
Copy the full SHA c467c02View commit details
Commits on Aug 22, 2021
-
Not really broken but there's definitely more characters we can allow. In fact, we allow everything! With some exceptions.
Configuration menu - View commit details
-
Copy full SHA for b74c14d - Browse repository at this point
Copy the full SHA b74c14dView commit details -
I only noticied this by chance: `(foo. bar . baz)` would get parsed as a single `field_expression`, because of how `seq()`s work.
Configuration menu - View commit details
-
Copy full SHA for 75b5324 - Browse repository at this point
Copy the full SHA 75b5324View commit details -
We can use the same technique as with `field_expression`s to correctly parse methods and only methods. We need to set a higher precedence on the colon specifically to "overpower" `field`
Configuration menu - View commit details
-
Copy full SHA for bdac1d2 - Browse repository at this point
Copy the full SHA bdac1d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dcaa8b - Browse repository at this point
Copy the full SHA 1dcaa8bView commit details
Commits on Aug 23, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0a662cd - Browse repository at this point
Copy the full SHA 0a662cdView commit details
Commits on Aug 28, 2021
-
Any quoted special form loses its special meaning, recursively.
Configuration menu - View commit details
-
Copy full SHA for b50647d - Browse repository at this point
Copy the full SHA b50647dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b76fcd4 - Browse repository at this point
Copy the full SHA b76fcd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 414cb3d - Browse repository at this point
Copy the full SHA 414cb3dView commit details -
Our first conflicts! The alternative would be to add precendece in all the binding rules and I don't really want to do that.
Configuration menu - View commit details
-
Copy full SHA for 59ed869 - Browse repository at this point
Copy the full SHA 59ed869View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3658ad0 - Browse repository at this point
Copy the full SHA 3658ad0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 979e4b7 - Browse repository at this point
Copy the full SHA 979e4b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd989dd - Browse repository at this point
Copy the full SHA fd989ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 71bcc26 - Browse repository at this point
Copy the full SHA 71bcc26View commit details -
If they just take statements they're not really worth their own rule.
Configuration menu - View commit details
-
Copy full SHA for a5907aa - Browse repository at this point
Copy the full SHA a5907aaView commit details
Commits on Aug 29, 2021
-
";" would get parsed as a string with only its starting quote and then a comment. The ending quote would not be found and all the rest of your program is a string. I though `token.immediate` was supposed to not allow...
Configuration menu - View commit details
-
Copy full SHA for 9ab6464 - Browse repository at this point
Copy the full SHA 9ab6464View commit details -
It is still supported and used in the Fennel compiler
Configuration menu - View commit details
-
Copy full SHA for f57cc57 - Browse repository at this point
Copy the full SHA f57cc57View commit details -
They're just symbols. However, they are symbols with dots in them (at least `.` and `..` are). Yet, they're not multisyms either. Indeed, a symbol that begins or ends on a dot is not a multisym. I managed to get the starting dots working. Unfortunately, I can't get a symbol to only end on a dot without completely breaking `multi_symbol`. So, no `?.` for you. :(
Configuration menu - View commit details
-
Copy full SHA for 785c415 - Browse repository at this point
Copy the full SHA 785c415View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.