Repository navigation
Conversation
|
@kaby76 are there other allowable elements in an desc.xml? |
|
The current desc.xsd is at https://github.com/kaby76/Trash/blob/main/desc.xsd. It's a pretty good description, but it looks like I had to change the way start rules are decided in version 3.7.0. Trash now has its own parser generator for ANTLR4 grammars, which bypasses trgen completely. (It's still somewhat experimental, but it is complete table-based, and almost as fast as ANTLR4-generated parsers.) In addition, when comparing grammars, I have to change the sort, so the "first parser rule is the start rule" can't hold. Preferably, one always marks the start rule with an EOF at the end of the rule rather than using the desc.xml or pom.xml. This is also necessary for some grammars because ANTLR4 (after version 4.7) can report a successful parse even though the input is invalid. |
|
@kaby76 I've removed the local copy of desc.xsd and changed every desc.xml file to point to the current version |
|
@dependabot rebase |
Very good. Looks like a bug in trgen. I was trying to accommodate the changes to cpp grammar, where both C++14 and C++20 are in the same directory. I have a fix, but I'm testing it over the current repo locally to make sure it works. |
No description provided.