Require that grammars' start rules be visible

This commit is contained in:
Max Brunsfeld 2017-08-04 15:21:53 -07:00
parent 1dca3a0b58
commit 94dc703bfc
12 changed files with 64 additions and 56 deletions

View file

@ -25,10 +25,11 @@ errors inside arrays
[1, , 2]
---
(array
(value (array
(number)
(ERROR)
(number))
(number)))
==========================================
errors inside objects
@ -38,7 +39,9 @@ errors inside objects
---
(object (pair (string) (number)) (ERROR (UNEXPECTED 'o')))
(value (object
(pair (string) (number))
(ERROR (UNEXPECTED 'o'))))
==========================================
errors inside nested objects
@ -48,9 +51,9 @@ errors inside nested objects
---
(object
(value (object
(pair (string) (object
(pair (string) (number))
(ERROR (number))))
(ERROR)
(pair (string) (number)))
(pair (string) (number))))