Category "grammar"

How to import a local grammar in tree-sitter node?

I am currently trying to import my own created grammar in a typescript node project in the following way: import Parser = require('tree-sitter'); import Languag

Is there a way to do a syntactic/symantic diff of C code?

NEC2 was originally written in Fortran and there have been two different ports to C from the original Fortran (xnec2c and necpp). The variable and function name

How can I parse the code that is conforming to a grammar expressed using ANTLR4 and then generate XML tags

I have specified a grammar using ANTLR4 using VScode and the extension by Mike Lischke. I am wondering if there is a way to parse the code of the program that i

Empty productions in RFC 5234 (Augmented BNF)

Does Augmented BNF (as specified by RFC 5234) allow matches to empty string? From reading grammar of the Augmented BNF itself (section 4, ABNF Definition of ABN