-
-
Notifications
You must be signed in to change notification settings - Fork 411
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 #331 "We only get Const::Num
, never Const::Int
"
#338
Conversation
#331
#331
"We only get Const::Num
, never `Const::Int"
#331
"We only get Const::Num
, never `Const::Int"#331
"We only get Const::Num
, never Const::Int
"
#331
"We only get Const::Num
, never Const::Int
"Const::Num
, never Const::Int
"
Const::Num
, never Const::Int
"Const::Num
, never Const::Int
"
Benchmark for c815defClick to view benchmark
|
Thanks, will try and get round to looking at this soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's looking pretty good. Please check my comments :)
Benchmark for 706f34fClick to view benchmark
|
Benchmark for 1b2481cClick to view benchmark
|
Benchmark for 125adbbClick to view benchmark
|
I reworked the number lexing and fixed some things:
This unblocks #328 I think now it's ready to review. :) |
Benchmark for 02a7c4aClick to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very good! I think we will see performance improvements in the execution too. Check my comments, specially about using Rational
or Racional
.
Benchmark for 958dd8fClick to view benchmark
|
Benchmark for 6f8c46cClick to view benchmark
|
// TODO: Setup strict mode. | ||
let strict_mode = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently I have strict_mode
set to always be false
. In strict mode decimals with leading zeros and implicit octal are not allowed.
I seems like the parser should take in a lexer, because 'use strict';
it only applies to function or program scope and the lexer does not know what a scope is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this is going to be interesting to see once we have the lexer as an iterator tied to the cursor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good to go from my side :)
Benchmark for 50eb93fClick to view benchmark
|
I would wait for #304 to land before this. |
The parser is looking amazing! I will rebase this today! |
Benchmark for 779dd63Click to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me too!
Checks are failing though
Benchmark for 3768535Click to view benchmark
|
Const::Num
, never Const::Int
"Const::Num
, never Const::Int
"
This will close #331 and unblock #328