Merge pull request #2806 from felixn/no-extra-semi

C++ target: don't generate extra/duplicate semicolons
This commit is contained in:
Terence Parr 2020-08-20 08:52:24 -07:00 committed by GitHub
commit be881fa6b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -961,19 +961,19 @@ AddToLabelList(a) ::= <<
TokenLabelType() ::= "<file.TokenLabelType; null = {Token}> *"
TokenDeclHeader(t) ::= "antlr4::<TokenLabelType()><t.name> = nullptr;"
TokenDeclHeader(t) ::= "antlr4::<TokenLabelType()><t.name> = nullptr"
TokenDecl(t) ::= "<! Variable Declaration !>"
TokenTypeDeclHeader(t) ::= "<! Local Variable !>"
TokenTypeDecl(t) ::= "size_t <t.name> = 0;"
TokenListDeclHeader(t) ::= "std::vector\<antlr4::Token *> <t.name>;"
TokenListDeclHeader(t) ::= "std::vector\<antlr4::Token *> <t.name>"
TokenListDecl(t) ::= "<! Variable Declaration !>"
RuleContextDeclHeader(r) ::= "<parser.name>::<r.ctxName> *<r.name> = nullptr;"
RuleContextDeclHeader(r) ::= "<parser.name>::<r.ctxName> *<r.name> = nullptr"
RuleContextDecl(r) ::= "<! Variable Declaration !>"
RuleContextListDeclHeader(rdecl) ::= "std::vector\<<rdecl.ctxName> *> <rdecl.name>;"
RuleContextListDeclHeader(rdecl) ::= "std::vector\<<rdecl.ctxName> *> <rdecl.name>"
RuleContextListDecl(rdecl) ::= "<! Variable Declaration !>"
ContextTokenGetterDeclHeader(t) ::= "antlr4::tree::TerminalNode *<t.name>();"