summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/am_read.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-11-08 13:06:23 +0100
committerjaseg <git@jaseg.de>2021-11-08 13:06:23 +0100
commit125eb821b9f5d4c58b17d43e318e9a6829120d03 (patch)
tree6564a0c275e8ddb256e1198a2af00c7c4b348182 /gerbonara/gerber/am_read.py
parent5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e (diff)
downloadgerbonara-125eb821b9f5d4c58b17d43e318e9a6829120d03.tar.gz
gerbonara-125eb821b9f5d4c58b17d43e318e9a6829120d03.tar.bz2
gerbonara-125eb821b9f5d4c58b17d43e318e9a6829120d03.zip
Parser half-refactored
Diffstat (limited to 'gerbonara/gerber/am_read.py')
-rw-r--r--gerbonara/gerber/am_read.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/am_read.py b/gerbonara/gerber/am_read.py
index 906aaa9..c50bd01 100644
--- a/gerbonara/gerber/am_read.py
+++ b/gerbonara/gerber/am_read.py
@@ -19,7 +19,6 @@
"""
from .am_opcode import OpCode
-from .am_primitive import eval_macro
import string
@@ -251,5 +250,6 @@ if __name__ == '__main__':
print_instructions(instructions)
print("eval:")
- for primitive in eval_macro(instructions):
+ from .am_primitive import eval_macro
+ for primitive in eval_macro(instructions, 'mm'):
print(primitive)