summaryrefslogtreecommitdiff
path: root/gerber/gerber_statements.py
AgeCommit message (Collapse)AuthorFilesLines
2015-03-05Fix tests for macros with no variables.Paulo Henrique Silva1-14/+13
All AM*Primitive classes now handles float for all but the code modifiers. This simplifies the reading/parsing.
2015-03-03Add aperture macro parsing and evaluation.Paulo Henrique Silva1-26/+32
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-18Add offset operationHamilton Kibbe1-0/+25
2015-02-18Python 3 tests passingHamilton Kibbe1-2/+1
2015-02-18Get unit conversion working for Gerber/Excellon filesHamilton Kibbe1-11/+51
Started operations module for file operations/transforms
2015-02-15Tests and bugfixesHamilton Kibbe1-5/+5
2015-02-09Tests and bugfixesHamilton Kibbe1-16/+31
2015-02-08Fix copy-paste error on ASParamStmtPaulo Henrique Silva1-1/+1
2015-02-02Added some Aperture Macro Primitives. Moved AM primitives to seperate fileHamilton Kibbe1-75/+8
2015-02-02testsHamilton Kibbe1-7/+9
2015-01-26merge upstream changesHamilton Kibbe1-1/+1
2015-01-26Added some testsHamilton Kibbe1-2/+3
2015-01-14Fix Mirror (deprecated) param generationPaulo Henrique Silva1-1/+1
2015-01-14Refactor AM aperture handling and add unit conversion supportPaulo Henrique Silva1-4/+124
* Add support to convert between metric/impertial * AM primitives are now properly created and can be converted between metric/imperial. (only Outline primitive is supported, no rendering yet)
2014-12-15Fix parsing for OrCAD.Paulo Henrique Silva1-137/+297
* Modify the way we parse parameters to allow more than one parameter in a single line as in the following example: %FSLAX55Y55*MOIN*% %IR0*IPPOS*OFA0.00000B0.00000*MIA0B0*SFA1.00000B1.00000*% (this is from OrCAD 16 default output) * Add missing deprecated parameters. * Change API to use given FileSettings on output. This allows us to use pcb-tools to convert between FS formats.
2014-12-05add ipc2581 primitivesHamilton Kibbe1-1/+15
2014-11-10Bunch of small fixes to improve Gerber read/write.Paulo Henrique Silva1-27/+27
2014-10-26Fix ValueError, missing self.Paulo Henrique Silva1-1/+1
2014-10-26Merge aperture fixses from upstreamHamilton Kibbe1-4/+4
2014-10-19Test updateHamilton Kibbe1-9/+7
2014-10-18Refactor renderingHamilton Kibbe1-1/+2
2014-10-10Added excellon format detectionHamilton Kibbe1-1/+6
2014-10-10Working region fills and level polarity. Renders Altium-generated gerbers ↵Hamilton Kibbe1-8/+8
like a champ!
2014-10-10Add testsHamilton Kibbe1-3/+9
2014-10-09doc updateHamilton Kibbe1-3/+3
2014-10-09Doc updateHamilton Kibbe1-0/+28
2014-10-09Add mode statement parsingHamilton Kibbe1-3/+3
2014-10-08start arcHamilton Kibbe1-2/+21
2014-10-07fix excellon renderHamilton Kibbe1-6/+28
2014-10-06add excellon statementsHamilton Kibbe1-0/+597