Fix root-node-name

This commit is contained in:
Andreas Dangel 2022-03-03 20:58:46 +01:00
parent c0150e4698
commit 0a6e4abc75
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
- lang-name: matches the grammar name (eg "Swift")
- lang-terse-name: uncapitalized package name (eg "swift")
- node-prefix: prefix for generated AST nodes (eg "Sw")
- root-node-name: name of the root node (eg "TopLevel"), will be made to implement RootNode
- root-node-name: name of the root node without prefix (eg "TopLevel"), will be made to implement RootNode
See AntlrGeneratedParserBase

View File

@ -46,7 +46,7 @@
<ant antfile="${antlr4.ant.wrapper}" target="pmd-language">
<property name="lang-name" value="Kotlin" />
<property name="lang-terse-name" value="kotlin" />
<property name="root-node-name" value="File" />
<property name="root-node-name" value="KotlinFile" />
<property name="node-prefix" value="Kt" />
</ant>
</target>