Open jmitchell opened 5 years ago
dhall.abnf is indeed not explicit enough: there are some comments in it that explain that simple-label should be tweaked to exclude keywords. I use negative lookahead, but I'd expect a non-PEG parser to handle this at the tokenizer level
It looks like the bnf file has been updated. Would it be possible to rerun the converter and see if it fixes this?
The ignored
./dhall-haskell/dhall-json/examples/travis.dhall
parse test fails, in part, because thein
inOperatingSystem
is parsed as thein
keyword of alet
expression.When I replace
constructors OperatingSystem
withOperatingSystem.OSX
it fails in the same way (constructors
is now deprecated). UsingSystem.OSX
, however, allows the subsequentin
to parse as expected.Potential explanations
token
,extras
,conflicts
,word
, and external scanners.in
and possibly other keywords.grammar.js
.tree-sitter
.