diff --git a/tools/as.py b/tools/as.py index 5274f18..e89418a 100644 --- a/tools/as.py +++ b/tools/as.py @@ -6,7 +6,7 @@ import sys import obj_pb2 -GRAMMAR_FILE = '/home/paulmathieu/vhdl/bin/as.ebnf' +GRAMMAR_FILE = '/home/paulmathieu/vhdl/tools/as.ebnf' opcodes = { 'nop' : lambda: '0000', diff --git a/tools/cc.py b/tools/cc.py index dc3b3a1..9b15f20 100644 --- a/tools/cc.py +++ b/tools/cc.py @@ -11,7 +11,7 @@ import lark asmod = importlib.import_module("as") -GRAMMAR_FILE = '/home/paulmathieu/vhdl/bin/cc.ebnf' +GRAMMAR_FILE = '/home/paulmathieu/vhdl/tools/cc.ebnf' CPP = ('cpp', '-P') @@ -1002,7 +1002,6 @@ def larkparse(f, debug=False): def parse_args(): parser = argparse.ArgumentParser(description='Compile.') - group = parser.add_mutually_exclusive_group() parser.add_argument('--debug', action='store_true', help='print the AST') parser.add_argument('--assembly', '-S', action='store_true', diff --git a/tools/ld.py b/tools/ld.py index dd971d3..ece8b9f 100644 --- a/tools/ld.py +++ b/tools/ld.py @@ -4,7 +4,7 @@ import sys import obj_pb2 -CRT0_FILE = '/home/paulmathieu/vhdl/bin/crt0.o' +CRT0_FILE = '/home/paulmathieu/vhdl/tools/crt0.o' def parse_objs(objs):