Skip to content

Commit

Permalink
Merge pull request #45 from RYDB3RG/master
Browse files Browse the repository at this point in the history
small rule attribute fixes
  • Loading branch information
mike-lischke authored Nov 1, 2016
2 parents f794820 + af624e1 commit b9f81ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ YYYY/MM/DD, github id, Full name, email
2016/08/11, BurtHarris, Ralph "Burt" Harris, Burt_Harris_antlr4@azxs.33mail.com
2016/08/19, andjo403, Andreas Jonson, andjo403@hotmail.com
2016/10/21, FloorGoddijn, Floor Goddijn, floor.goddijn[at]aimms.com
2016/11/01, RYDB3RG, Kai Stammerjohann, RYDB3RG@users.noreply.github.com
2 changes: 1 addition & 1 deletion runtime/Cpp/runtime/src/ParserRuleContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ParserRuleContext::ParserRuleContext()
}

ParserRuleContext::ParserRuleContext(ParserRuleContext *parent, size_t invokingStateNumber)
: RuleContext(parent, invokingStateNumber) {
: RuleContext(parent, invokingStateNumber), start(nullptr), stop(nullptr) {
}

void ParserRuleContext::copyFrom(ParserRuleContext *ctx) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ TokenPropertyRef_index(t) ::= "(<ctx(t)>-><t.label> != nullptr ? <ctx(t)>-><t.la
TokenPropertyRef_intHeader(t) ::= "<! Required but unused. !>"
TokenPropertyRef_int(t) ::= "(<ctx(t)>-><t.label> != nullptr ? std::stoi(<ctx(t)>-><t.label>->getText()) : 0)"

RulePropertyRef_stopHeaderHeader(r) ::= "<! Required but unused. !>"
RulePropertyRef_startHeader(r) ::= "<! Required but unused. !>"
RulePropertyRef_start(r) ::= "(<ctx(r)>-><r.label> != nullptr ? (<ctx(r)>-><r.label>->start) : nullptr)"

RulePropertyRef_stopHeader(r) ::= "<! Required but unused. !>"
Expand Down

0 comments on commit b9f81ab

Please sign in to comment.