generated from tweag/project
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Describe the bug
Though the newest ocaml grammar should be more performant than the existing one:
$ cat ocaml/grammars/ocaml/src/parser.c | rg "#define.*STATE"
#define STATE_COUNT 8273
#define LARGE_STATE_COUNT 1733
The current input & expected ocaml.ml produces (ERROR)
nodes when using latest gramamr
To Reproduce
Modifying the rev below to 3ef7c00b29e41e3a0c1d18e82ea37c64d72b93fc
should produce errors
topiary/topiary-config/languages.ncl
Lines 54 to 62 in f4b67a0
ocaml = { | |
extensions = ["ml"], | |
grammar.source.git = { | |
git = "https://github.com/tree-sitter/tree-sitter-ocaml.git", | |
rev = "a45fda5fe73cda92f2593d16340b3f6bd46674b8", | |
subdir = "grammars/ocaml", | |
nixHash = "sha256-u8R3JvjaOrW6kCX1hNTGMl86HnKAoopSMvHr8Sj0i04=", | |
}, | |
}, |
Expected behavior
Though node names are not expected to be backwards compatible, documents to parse should
Environment
- OS name + version: macOS
- Version of the code: latest
main
Additional context
#859
Metadata
Metadata
Assignees
Labels
No labels