[parser] Be a little nicer about line wrapping
This commit is contained in:
parent
7b90b5d229
commit
0a9f235836
1 changed files with 2 additions and 4 deletions
|
@ -110,8 +110,7 @@ impl<T> Iterator for Parser<T> where T: Iterator<Item=LexerResult> {
|
|||
self.next_lex()
|
||||
},
|
||||
Some(NodeParseResult::Push{ next }) => {
|
||||
// Push the next parser on and give it a shot at the current
|
||||
// token.
|
||||
// Push the next parser on and give it a shot at the current token.
|
||||
self.push_parser(next);
|
||||
input_lex
|
||||
},
|
||||
|
@ -122,8 +121,7 @@ impl<T> Iterator for Parser<T> where T: Iterator<Item=LexerResult> {
|
|||
};
|
||||
match input_lex {
|
||||
Some(Ok(ref lex)) => {
|
||||
// TODO: Valid Lex from our input. Hand it off to the
|
||||
// current parser and process the result.
|
||||
// TODO: Valid Lex from our input. Hand it off to the current parser and process the result.
|
||||
result = Some(self.parse_lex(lex));
|
||||
},
|
||||
Some(Err(ref error)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue