forked from jasder/antlr
Update Swift.test.stg
This commit is contained in:
parent
033e5ed136
commit
d1dbfccdd6
|
@ -346,8 +346,22 @@ let walker = ParseTreeWalker()
|
||||||
try! walker.walk(LeafListener(), <s>)
|
try! walker.walk(LeafListener(), <s>)
|
||||||
>>
|
>>
|
||||||
|
|
||||||
|
|
||||||
TreeNodeWithAltNumField(X) ::= <<
|
TreeNodeWithAltNumField(X) ::= <<
|
||||||
// TODO
|
@parser::members {
|
||||||
|
open class MyRuleNode: ParserRuleContext {
|
||||||
|
public var altNum: Int = 0
|
||||||
|
override
|
||||||
|
public init(_ parent: ParserRuleContext?, _ invokingStateNumber: Int) {
|
||||||
|
super.init(parent, invokingStateNumber)
|
||||||
|
}
|
||||||
|
override
|
||||||
|
open func getAltNumber() -> Int { return altNum }
|
||||||
|
|
||||||
|
override
|
||||||
|
open func setAltNumber(_ altNum: Int) { self.altNum = altNum }
|
||||||
|
}
|
||||||
|
}
|
||||||
>>
|
>>
|
||||||
|
|
||||||
TokenGetterListener(X) ::= <<
|
TokenGetterListener(X) ::= <<
|
||||||
|
|
Loading…
Reference in New Issue