[voltLib] parser.py: formatting
This commit is contained in:
parent
b49c6b917e
commit
70211f34a0
@ -192,9 +192,9 @@ class Parser(object):
|
|||||||
sub = self.parse_substitution_()
|
sub = self.parse_substitution_()
|
||||||
elif as_pos_or_sub == "AS_POSITION":
|
elif as_pos_or_sub == "AS_POSITION":
|
||||||
pos = self.parse_position_()
|
pos = self.parse_position_()
|
||||||
def_lookup = ast.LookupDefinition(location, name, base, marks,
|
def_lookup = ast.LookupDefinition(
|
||||||
all_flag, direction, comments,
|
location, name, base, marks, process_marks, all_flag, direction,
|
||||||
context, sub, pos)
|
comments, context, sub, pos)
|
||||||
return def_lookup
|
return def_lookup
|
||||||
|
|
||||||
def parse_context_(self):
|
def parse_context_(self):
|
||||||
@ -374,8 +374,9 @@ class Parser(object):
|
|||||||
name = self.expect_string_()
|
name = self.expect_string_()
|
||||||
group = self.groups_.resolve(name)
|
group = self.groups_.resolve(name)
|
||||||
if group is None:
|
if group is None:
|
||||||
raise VoltLibError('Glyph group "%s" is not defined' % name,
|
raise VoltLibError(
|
||||||
location)
|
'Glyph group "%s" is not defined' % name,
|
||||||
|
location)
|
||||||
coverage.extend(group.enum)
|
coverage.extend(group.enum)
|
||||||
elif self.next_token_ == "RANGE":
|
elif self.next_token_ == "RANGE":
|
||||||
self.expect_keyword_("RANGE")
|
self.expect_keyword_("RANGE")
|
||||||
@ -442,6 +443,7 @@ class Parser(object):
|
|||||||
except StopIteration:
|
except StopIteration:
|
||||||
self.next_token_type_, self.next_token_ = (None, None)
|
self.next_token_type_, self.next_token_ = (None, None)
|
||||||
|
|
||||||
|
|
||||||
class SymbolTable(parser.SymbolTable):
|
class SymbolTable(parser.SymbolTable):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
parser.SymbolTable.__init__(self)
|
parser.SymbolTable.__init__(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user