Fix bind error
This commit is contained in:
parent
428d560e2a
commit
8ce53d7c72
@ -157,7 +157,7 @@ impl Parser {
|
|||||||
|
|
||||||
fn declaration(&mut self) -> ParseResult<ASTNode> {
|
fn declaration(&mut self) -> ParseResult<ASTNode> {
|
||||||
use tokenizer::Token::*;
|
use tokenizer::Token::*;
|
||||||
expect!(self, Fn, "Expected 'fn'");
|
expect!(self, Keyword(Kw::Fn), "Expected 'fn'");
|
||||||
let prototype = try!(self.prototype());
|
let prototype = try!(self.prototype());
|
||||||
let body: Vec<Expression> = try!(self.body());
|
let body: Vec<Expression> = try!(self.body());
|
||||||
expect!(self, Keyword(Kw::End), "Expected 'end'");
|
expect!(self, Keyword(Kw::End), "Expected 'end'");
|
||||||
|
Loading…
Reference in New Issue
Block a user