Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
592ab30c
Commit
592ab30c
authored
Jan 15, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more specctra dsn work
parent
c72857f4
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
750 additions
and
155 deletions
+750
-155
dsn.cpp
pcbnew/dsn.cpp
+18
-10
dsn.h
pcbnew/dsn.h
+7
-2
specctra.cpp
pcbnew/specctra.cpp
+725
-143
No files found.
pcbnew/dsn.cpp
View file @
592ab30c
...
@@ -71,6 +71,7 @@ const static KEYWORD tokens[] = {
...
@@ -71,6 +71,7 @@ const static KEYWORD tokens[] = {
TOKDEF
(
attach
),
TOKDEF
(
attach
),
TOKDEF
(
attr
),
TOKDEF
(
attr
),
TOKDEF
(
average_pair_length
),
TOKDEF
(
average_pair_length
),
TOKDEF
(
back
),
TOKDEF
(
base_design
),
TOKDEF
(
base_design
),
TOKDEF
(
bbv_ctr2ctr
),
TOKDEF
(
bbv_ctr2ctr
),
TOKDEF
(
bond
),
TOKDEF
(
bond
),
...
@@ -102,8 +103,8 @@ const static KEYWORD tokens[] = {
...
@@ -102,8 +103,8 @@ const static KEYWORD tokens[] = {
TOKDEF
(
comment
),
TOKDEF
(
comment
),
TOKDEF
(
comp
),
TOKDEF
(
comp
),
TOKDEF
(
comp_edge_center
),
TOKDEF
(
comp_edge_center
),
TOKDEF
(
component
),
TOKDEF
(
comp_order
),
TOKDEF
(
comp_order
),
TOKDEF
(
component
),
TOKDEF
(
composite
),
TOKDEF
(
composite
),
TOKDEF
(
conductance_resolution
),
TOKDEF
(
conductance_resolution
),
TOKDEF
(
conductor
),
TOKDEF
(
conductor
),
...
@@ -119,8 +120,9 @@ const static KEYWORD tokens[] = {
...
@@ -119,8 +120,9 @@ const static KEYWORD tokens[] = {
TOKDEF
(
cross
),
TOKDEF
(
cross
),
TOKDEF
(
crosstalk_model
),
TOKDEF
(
crosstalk_model
),
TOKDEF
(
current_resolution
),
TOKDEF
(
current_resolution
),
TOKDEF
(
deleted_keepout
),
TOKDEF
(
delete_pins
),
TOKDEF
(
delete_pins
),
TOKDEF
(
deleted
),
TOKDEF
(
deleted_keepout
),
TOKDEF
(
delta
),
TOKDEF
(
delta
),
TOKDEF
(
diagonal
),
TOKDEF
(
diagonal
),
TOKDEF
(
direction
),
TOKDEF
(
direction
),
...
@@ -148,6 +150,7 @@ const static KEYWORD tokens[] = {
...
@@ -148,6 +150,7 @@ const static KEYWORD tokens[] = {
TOKDEF
(
front
),
TOKDEF
(
front
),
TOKDEF
(
front_only
),
TOKDEF
(
front_only
),
TOKDEF
(
gap
),
TOKDEF
(
gap
),
TOKDEF
(
gate
),
TOKDEF
(
gates
),
TOKDEF
(
gates
),
TOKDEF
(
global
),
TOKDEF
(
global
),
TOKDEF
(
grid
),
TOKDEF
(
grid
),
...
@@ -364,7 +367,9 @@ const static KEYWORD tokens[] = {
...
@@ -364,7 +367,9 @@ const static KEYWORD tokens[] = {
TOKDEF
(
string_quote
),
TOKDEF
(
string_quote
),
TOKDEF
(
structure
),
TOKDEF
(
structure
),
TOKDEF
(
structure_out
),
TOKDEF
(
structure_out
),
TOKDEF
(
subgate
),
TOKDEF
(
subgates
),
TOKDEF
(
subgates
),
TOKDEF
(
substituted
),
TOKDEF
(
such
),
TOKDEF
(
such
),
TOKDEF
(
suffix
),
TOKDEF
(
suffix
),
TOKDEF
(
super_placement
),
TOKDEF
(
super_placement
),
...
@@ -535,29 +540,32 @@ const char* LEXER::GetTokenText( DSN_T aTok )
...
@@ -535,29 +540,32 @@ const char* LEXER::GetTokenText( DSN_T aTok )
{
{
switch
(
aTok
)
switch
(
aTok
)
{
{
case
T_NONE
:
ret
=
"NONE"
;
break
;
case
T_QUOTE_DEF
:
case
T_QUOTE_DEF
:
ret
=
"
'quoted text delimiter'
"
;
ret
=
"
quoted text delimiter
"
;
break
;
break
;
case
T_DASH
:
case
T_DASH
:
ret
=
"
'-'
"
;
ret
=
"
-
"
;
break
;
break
;
case
T_SYMBOL
:
case
T_SYMBOL
:
ret
=
"
'symbol'
"
;
ret
=
"
symbol
"
;
break
;
break
;
case
T_NUMBER
:
case
T_NUMBER
:
ret
=
"
'number'
"
;
ret
=
"
number
"
;
break
;
break
;
case
T_RIGHT
:
case
T_RIGHT
:
ret
=
"
')'
"
;
ret
=
"
)
"
;
break
;
break
;
case
T_LEFT
:
case
T_LEFT
:
ret
=
"
'('
"
;
ret
=
"
(
"
;
break
;
break
;
case
T_STRING
:
case
T_STRING
:
ret
=
"
'quoted string'
"
;
ret
=
"
quoted string
"
;
break
;
break
;
case
T_EOF
:
case
T_EOF
:
ret
=
"
'end of file'
"
;
ret
=
"
end of file
"
;
break
;
break
;
default
:
default
:
ret
=
"???"
;
ret
=
"???"
;
...
...
pcbnew/dsn.h
View file @
592ab30c
...
@@ -70,6 +70,7 @@ enum DSN_T {
...
@@ -70,6 +70,7 @@ enum DSN_T {
T_attach
,
T_attach
,
T_attr
,
T_attr
,
T_average_pair_length
,
T_average_pair_length
,
T_back
,
T_base_design
,
T_base_design
,
T_bbv_ctr2ctr
,
T_bbv_ctr2ctr
,
T_bond
,
T_bond
,
...
@@ -101,8 +102,8 @@ enum DSN_T {
...
@@ -101,8 +102,8 @@ enum DSN_T {
T_comment
,
T_comment
,
T_comp
,
T_comp
,
T_comp_edge_center
,
T_comp_edge_center
,
T_component
,
T_comp_order
,
T_comp_order
,
T_component
,
T_composite
,
T_composite
,
T_conductance_resolution
,
T_conductance_resolution
,
T_conductor
,
T_conductor
,
...
@@ -118,8 +119,9 @@ enum DSN_T {
...
@@ -118,8 +119,9 @@ enum DSN_T {
T_cross
,
T_cross
,
T_crosstalk_model
,
T_crosstalk_model
,
T_current_resolution
,
T_current_resolution
,
T_deleted_keepout
,
T_delete_pins
,
T_delete_pins
,
T_deleted
,
T_deleted_keepout
,
T_delta
,
T_delta
,
T_diagonal
,
T_diagonal
,
T_direction
,
T_direction
,
...
@@ -147,6 +149,7 @@ enum DSN_T {
...
@@ -147,6 +149,7 @@ enum DSN_T {
T_front
,
T_front
,
T_front_only
,
T_front_only
,
T_gap
,
T_gap
,
T_gate
,
T_gates
,
T_gates
,
T_global
,
T_global
,
T_grid
,
T_grid
,
...
@@ -363,7 +366,9 @@ enum DSN_T {
...
@@ -363,7 +366,9 @@ enum DSN_T {
T_string_quote
,
T_string_quote
,
T_structure
,
T_structure
,
T_structure_out
,
T_structure_out
,
T_subgate
,
T_subgates
,
T_subgates
,
T_substituted
,
T_such
,
T_such
,
T_suffix
,
T_suffix
,
T_super_placement
,
T_super_placement
,
...
...
pcbnew/specctra.cpp
View file @
592ab30c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment