Fix a few details

This commit is contained in:
Paul Mathieu 2021-02-18 21:27:20 -08:00
parent 0157e235e4
commit f59b3efb9f
3 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,7 @@ import sys
import obj_pb2 import obj_pb2
GRAMMAR_FILE = '/home/paulmathieu/vhdl/bin/as.ebnf' GRAMMAR_FILE = '/home/paulmathieu/vhdl/tools/as.ebnf'
opcodes = { opcodes = {
'nop' : lambda: '0000', 'nop' : lambda: '0000',

View File

@ -11,7 +11,7 @@ import lark
asmod = importlib.import_module("as") asmod = importlib.import_module("as")
GRAMMAR_FILE = '/home/paulmathieu/vhdl/bin/cc.ebnf' GRAMMAR_FILE = '/home/paulmathieu/vhdl/tools/cc.ebnf'
CPP = ('cpp', '-P') CPP = ('cpp', '-P')
@ -1002,7 +1002,6 @@ def larkparse(f, debug=False):
def parse_args(): def parse_args():
parser = argparse.ArgumentParser(description='Compile.') parser = argparse.ArgumentParser(description='Compile.')
group = parser.add_mutually_exclusive_group()
parser.add_argument('--debug', action='store_true', parser.add_argument('--debug', action='store_true',
help='print the AST') help='print the AST')
parser.add_argument('--assembly', '-S', action='store_true', parser.add_argument('--assembly', '-S', action='store_true',

View File

@ -4,7 +4,7 @@ import sys
import obj_pb2 import obj_pb2
CRT0_FILE = '/home/paulmathieu/vhdl/bin/crt0.o' CRT0_FILE = '/home/paulmathieu/vhdl/tools/crt0.o'
def parse_objs(objs): def parse_objs(objs):