summaryrefslogtreecommitdiff
path: root/gerber/tests/test_gerber_statements.py
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2015-03-03 03:41:55 -0300
committerPaulo Henrique Silva <ph.silva@gmail.com>2015-03-03 03:41:55 -0300
commit670d3fbbd7ebfb69bd223ac30b73ec47b195b380 (patch)
tree5373fdec50462a210f84d25caa93f1bc1204c4cb /gerber/tests/test_gerber_statements.py
parentb8dcc86cb4560d033761db0ad41924f6d9669333 (diff)
downloadgerbonara-670d3fbbd7ebfb69bd223ac30b73ec47b195b380.tar.gz
gerbonara-670d3fbbd7ebfb69bd223ac30b73ec47b195b380.tar.bz2
gerbonara-670d3fbbd7ebfb69bd223ac30b73ec47b195b380.zip
Add aperture macro parsing and evaluation.
Aperture macros can get complex with arithmetical operations, variables and variables substitution. Current pcb-tools code just read each macro block as an independent unit, this cannot deal with variables that get changed after used. This patch splits the task in two: first we parse all macro content and creates a bytecode representation of all operations. This bytecode representation will be executed when an AD command is issues passing the required parameters. Parsing is heavily based on gerbv using a Shunting Yard approach to math parsing. Integration with rs274x.py code is not finished as I need to figure out how to integrate the final macro primitives with the graphical primitives already in use.
Diffstat (limited to 'gerber/tests/test_gerber_statements.py')
0 files changed, 0 insertions, 0 deletions