Commit a5e2913d authored by dickelbeck's avatar dickelbeck

more specctra dsn work

parent 6c3235c1
...@@ -276,8 +276,8 @@ const static KEYWORD tokens[] = { ...@@ -276,8 +276,8 @@ const static KEYWORD tokens[] = {
TOKDEF(place), TOKDEF(place),
TOKDEF(place_boundary), TOKDEF(place_boundary),
TOKDEF(place_control), TOKDEF(place_control),
TOKDEF(placement),
TOKDEF(place_rule), TOKDEF(place_rule),
TOKDEF(placement),
TOKDEF(plan), TOKDEF(plan),
TOKDEF(plane), TOKDEF(plane),
TOKDEF(pn), TOKDEF(pn),
...@@ -342,6 +342,7 @@ const static KEYWORD tokens[] = { ...@@ -342,6 +342,7 @@ const static KEYWORD tokens[] = {
TOKDEF(signal), TOKDEF(signal),
TOKDEF(site), TOKDEF(site),
TOKDEF(smd), TOKDEF(smd),
TOKDEF(snap),
TOKDEF(snap_angle), TOKDEF(snap_angle),
TOKDEF(source), TOKDEF(source),
TOKDEF(space_in_quoted_tokens), TOKDEF(space_in_quoted_tokens),
...@@ -419,6 +420,7 @@ const static KEYWORD tokens[] = { ...@@ -419,6 +420,7 @@ const static KEYWORD tokens[] = {
TOKDEF(wiring), TOKDEF(wiring),
TOKDEF(write_resolution), TOKDEF(write_resolution),
TOKDEF(x), TOKDEF(x),
TOKDEF(y),
}; };
......
...@@ -276,8 +276,8 @@ enum DSN_T { ...@@ -276,8 +276,8 @@ enum DSN_T {
T_place, T_place,
T_place_boundary, T_place_boundary,
T_place_control, T_place_control,
T_placement,
T_place_rule, T_place_rule,
T_placement,
T_plan, T_plan,
T_plane, T_plane,
T_pn, T_pn,
...@@ -342,6 +342,7 @@ enum DSN_T { ...@@ -342,6 +342,7 @@ enum DSN_T {
T_signal, T_signal,
T_site, T_site,
T_smd, T_smd,
T_snap,
T_snap_angle, T_snap_angle,
T_source, T_source,
T_space_in_quoted_tokens, T_space_in_quoted_tokens,
...@@ -419,6 +420,7 @@ enum DSN_T { ...@@ -419,6 +420,7 @@ enum DSN_T {
T_wiring, T_wiring,
T_write_resolution, T_write_resolution,
T_x, T_x,
T_y,
T_END // just a sentinel, not a token T_END // just a sentinel, not a token
}; };
...@@ -649,6 +651,25 @@ public: ...@@ -649,6 +651,25 @@ public:
return curTok; return curTok;
} }
/**
* Function CurLineNumber
* returns the current line number within my LINE_READER
*/
int CurLineNumber()
{
return reader.LineNumber();
}
/**
* Function CurFilename
* returns the current input filename.
* @return const wxString& - the filename.
*/
const wxString& CurFilename()
{
return filename;
}
/** /**
* Function PrevTok * Function PrevTok
* returns whatever NextTok() returned the 2nd to last time it was called. * returns whatever NextTok() returned the 2nd to last time it was called.
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment