diff --git a/gerber/gerber.py b/gerber/gerber.py index 49c64b2..ee7fcbc 100644 --- a/gerber/gerber.py +++ b/gerber/gerber.py @@ -33,7 +33,7 @@ class ParamStmt(Statement): class FSParamStmt(ParamStmt): - def __init__(self, param, zero, notation, x, y): + def __init__(self, param, zero = "L", notation = "A", x = "24", y = "24"): ParamStmt.__init__(self, param) self.zero = zero self.notation = notation @@ -342,7 +342,7 @@ class Gerber(object): COORD_OP = r"D[0]?[123]" - FS = r"(?PFS)(?P(L|T))(?P(A|I))X(?P[0-7][0-7])Y(?P[0-7][0-7])" + FS = r"(?PFS)(?P(L|T))?(?P(A|I))X(?P[0-7][0-7])Y(?P[0-7][0-7])" MO = r"(?PMO)(?P(MM|IN))" IP = r"(?PIP)(?P(POS|NEG))" LP = r"(?PLP)(?P(D|C))"