cc: make it work with modern lark
This commit is contained in:
parent
467ef32107
commit
b8d828c438
@ -1490,7 +1490,7 @@ def parse_tree(tree, debug=False):
|
||||
|
||||
def larkparse(f, debug=False):
|
||||
with open(GRAMMAR_FILE) as g:
|
||||
asparser = lark.Lark(g.read())
|
||||
asparser = lark.Lark(g.read(), maybe_placeholders=False)
|
||||
data = f.read()
|
||||
if isinstance(data, bytes):
|
||||
data = data.decode()
|
||||
|
@ -69,7 +69,7 @@ def dump(secmap):
|
||||
|
||||
|
||||
def parse_args():
|
||||
parser = argparse.ArgumentParser(description='Assemble.')
|
||||
parser = argparse.ArgumentParser(description='Link.')
|
||||
parser.add_argument('--debug', action='store_true',
|
||||
help='print debug info')
|
||||
parser.add_argument('objfiles', metavar='O', nargs='+',
|
||||
|
Loading…
Reference in New Issue
Block a user