-
I'm trying to add comments to my language. So I added a `%whitespace` directive, similar to the JSON and INI examples. But when my source code starts with a comment, the parser always reports a syntax…
booch updated
10 years ago
-
I expect the PL/SQL grammar to parse sql scripts containing multiple blocks of sqlplus, pl/sql and sql but when trying to do so the `script.sql` example reports the `line 12:0 mismatched input 'declar…
-
GNU Emacs 29.2
Doom Emacs
Initially it was complaining about not finding libtree-sitter-gomod.so,
the [tree-sitter-module](https://github.com/casouri/tree-sitter-module) creates libtree-sitter-g…
-
Working on a [parser for the Modelica language](http://github.com/omuses/moijs), Jison eventually required the `-p lr` option to avoid reduce/reduce conflicts. The same parser rules work with Bison an…
-
I'm creating a grammar in jison
This is my jison file:
> sgr.jison
```
/*
AUX VARIABLES
*/
%{
var contratos = "(E1:ENTIDADE)-[C:CONTRATO] -> (E2:ENTIDADE)";
var …
-
Why is the start rule feature undocumented? I have a very good use case for it. Should I refrain from using it?
-
The version of TSPL currently published using the pre-DocC toolchain styles each item in the definition of a grammar rule as a link to that item's own definition. The live link makes it easy to follo…
-
In order to skip over types, engines will need to parse them. Compared to existing comments, the proposed types-as-comments will require more work to find out where they end. Both TypeScript and Flow …
-
When using `func (p *Parser) Parse(text string)`, a rule that does not match the grammar exits the program with status 1. This is an example:
`{"lexical":"error","line":"4","msg":"Line 4: illegal …
-
The maintenance efforts will reduce drastically if we can generate TextMate grammar which is [used by VSCode](https://github.com/microsoft/vscode-textmate) from [VHS official tree-sitter](https://gith…