Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "sexp_parser"]
path = sexp_parser
url = https://github.com/realthunder/sexp_parser.git
url = https://github.com/tapegoji/sexp_parser.git
13 changes: 9 additions & 4 deletions kicad_pcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
__author__ = "Zheng, Lei"
__copyright__ = "Copyright 2016, Zheng, Lei"
__license__ = "MIT"
__version__ = "1.0.0"
__version__ = "1.1.5" #maui
__email__ = "realthunder.dev@gmail.com"
__status__ = "Prototype"

Expand Down Expand Up @@ -51,9 +51,14 @@ class KicadPCB_module(SexpParser):
class KicadPCB(SexpParser):

# To make sure the following key exists, and is of type SexpList
_module = ['fp_text',
_module = ['property', # maui
'fp_text',
'fp_circle',
'fp_arc',
'fp_line', # maui
'fp_rect', # maui
'fp_poly', # maui
'zone', # maui
'pad',
'model']

Expand All @@ -65,8 +70,9 @@ class KicadPCB(SexpParser):
'gr_line',
'gr_circle',
'gr_arc',
'gr_poly', # maui
'gr_curve',
'gr_poly',
'gr_rect', # maui
'segment',
'arc',
'via',
Expand All @@ -91,4 +97,3 @@ def getError(self):
def load(filename, quote_no_parse=None, encoding='utf-8'):
with open(filename,'r', encoding=encoding) as f:
return KicadPCB(parseSexp(f.read(), quote_no_parse))

2 changes: 1 addition & 1 deletion sexp_parser
Submodule sexp_parser updated 2 files
+26 −4 sexp_parser.py
+2,193 −0 test.kicad_pcb