We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
parse_expression
I get an Error: Expected token when running this function:
Error: Expected token
fn main() { println(greet("World")) } fn greet(name: string) = "Hello " + name
I created a parser test that I used to debug the error:
#[test] fn test_parse_inline_function() { let raw = " fn main() = 1 "; let tokens = tokenize(raw).unwrap(); let tree = parse(tokens, Some(raw.to_string()), "".into()); assert!(tree.is_ok()) }
It seems like the error is an issue with how the parse_expression function peeks tokens. I added a test stub to investigate this later.
Originally posted by @garritfra in #95 (comment)
The text was updated successfully, but these errors were encountered:
Fixed by #109
Sorry, something went wrong.
No branches or pull requests
I get an
Error: Expected token
when running this function:I created a parser test that I used to debug the error:
It seems like the error is an issue with how the
parse_expression
function peeks tokens. I added a test stub to investigate this later.Originally posted by @garritfra in #95 (comment)
The text was updated successfully, but these errors were encountered: