ptsd
ptsd copied to clipboard
extends should be ast.Identifier not LexerIdentifier
when use ptsd
f = open('./tutorial/tutorial.thrift', 'r')
tree = Parser().parse(f.read())
print(tree)
to parse apache tutorial thrift https://github.com/apache/thrift/tree/master/tutorial it will print
service Calculator extends <ptsd.lexer.Identifier object at 0x1080d2eb0> {
void ping()
...
}
service.extends is still a LexerIdentifier
, not a ast.Identifier
(yes, no need to add a Extends
Node)
@wickman