Base error costs on top-level trees skipped and lines of text skipped

Rather than on the total number of tokens skipped
This commit is contained in:
Max Brunsfeld 2016-08-29 17:06:23 -07:00
parent 27c9cb4175
commit 31d1160e21
3 changed files with 10 additions and 22 deletions

View file

@ -56,12 +56,12 @@ if ({a: 'b'} {c: 'd'}) {
(program
(if_statement
(object (pair (identifier) (string)))
(ERROR (object (pair (identifier) (string))))
(object (pair (identifier) (string)))
(statement_block
(ERROR (function
(formal_parameters (identifier))
(statement_block (expression_statement (identifier)))))
(expression_statement (function
(formal_parameters (identifier))
(statement_block (expression_statement (identifier))))))))
(statement_block (expression_statement (identifier))))
(ERROR (function
(formal_parameters (identifier))
(statement_block (expression_statement (identifier)))))))))