[voltLib] add Parser.anchors

This commit is contained in:
moyogo 2015-12-05 20:04:50 +00:00
parent 1f7bc1bea7
commit cdfd1a11c3

View File

@ -11,6 +11,7 @@ class Parser(object):
def __init__(self, path): def __init__(self, path):
self.doc_ = ast.VoltFile() self.doc_ = ast.VoltFile()
self.groups_ = SymbolTable() self.groups_ = SymbolTable()
self.anchors_ = SymbolTable()
self.next_token_type_, self.next_token_ = (None, None) self.next_token_type_, self.next_token_ = (None, None)
self.next_token_location_ = None self.next_token_location_ = None
with open(path, "r") as f: with open(path, "r") as f: