You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ignored./dhall-haskell/dhall-json/examples/travis.dhall parse test fails, in part, because the in in OperatingSystem is parsed as the in keyword of a let expression.
When I replace constructors OperatingSystem with OperatingSystem.OSX it fails in the same way (constructors is now deprecated). Using System.OSX, however, allows the subsequent in to parse as expected.
Potential explanations
grammar.js needs to be adjusted using tree-sitter features, like precedence, associativity, token, extras, conflicts, word, and external scanners.
dhall.abnf isn't explicit enough about non-empty whitespace needed around in and possibly other keywords.
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
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
.The text was updated successfully, but these errors were encountered: