grammar
¶
The grammar
module contains the Gerber X3 grammar implemented using the pyparsing
library.
SyntaxSwitches
¶
Grammar
¶
Internal representation of the Gerber X3 grammar.
user_name
¶
Create a parser element capable of parsing user attribute names.
aperture_id
¶
Create a parser element capable of parsing aperture identifiers.
make_unpack_callback
¶
make_unpack_callback(
node_type: Type[Node], **kwargs: Any
) -> Callable[[str, int, ParseResults], Node]
Create a callback for unpacking the results of the parser.
aperture_block
¶
Create a parser element capable of parsing aperture blocks.
step_repeat
¶
Create a parser element capable of parsing step repeats.
add_aperture
¶
Create a parser element capable of parsing add-aperture commands.
add_aperture_circle
¶
Create a parser element capable of parsing add-aperture-circle commands.
add_aperture_rectangle
¶
Create a parser element capable of parsing add-aperture-rectangle commands.
add_aperture_polygon
¶
Create a parser element capable of parsing add-aperture-polygon commands.
add_aperture_macro
¶
Create a parser element capable of parsing add-aperture-polygon commands.
d_codes_standalone
¶
Create a parser element capable of parsing standalone D-codes.
d_codes_non_standalone
¶
Create a parser element capable of parsing standalone D-codes.
load_commands
¶
Create a parser element capable of parsing Load-commands.
m
¶
Create a parser element capable of parsing particular D-code.
primitives
¶
Create a parser element capable of parsing macro primitives.
primitive
¶
Create a parser element capable of parsing a primitive.
properties
¶
Create a parser element capable of parsing Properties-commands.