summaryrefslogtreecommitdiff
path: root/gerber/am_statements.py
AgeCommit message (Collapse)AuthorFilesLines
2015-03-03Add aperture macro parsing and evaluation.Paulo Henrique Silva1-2/+6
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.
2015-02-18Get unit conversion working for Gerber/Excellon filesHamilton Kibbe1-9/+6
Started operations module for file operations/transforms
2015-02-09Tests and bugfixesHamilton Kibbe1-0/+6
2015-02-09Add aperture macro statement testsHamilton Kibbe1-86/+132
2015-02-08Add rest of Aperture Macro PrimitivesHamilton Kibbe1-134/+571
2015-02-02Added some Aperture Macro Primitives. Moved AM primitives to seperate fileHamilton Kibbe1-0/+341