Mercurial > hg > octave-lyh
comparison src/token.cc @ 11467:7aab48b6e903
token.h, token.cc: delete obsolete and unused token type
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 09 Jan 2011 14:57:31 -0500 |
parents | cd96d29c5efa |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11466:1f64a7b73e98 | 11467:7aab48b6e903 |
---|---|
63 column_num = c; | 63 column_num = c; |
64 type_tag = ettype_token; | 64 type_tag = ettype_token; |
65 et = t; | 65 et = t; |
66 } | 66 } |
67 | 67 |
68 token::token (plot_tok_type t, int l, int c) | |
69 { | |
70 line_num = l; | |
71 column_num = c; | |
72 type_tag = pttype_token; | |
73 pt = t; | |
74 } | |
75 | |
76 token::token (symbol_table::symbol_record *s, int l, int c) | 68 token::token (symbol_table::symbol_record *s, int l, int c) |
77 { | 69 { |
78 line_num = l; | 70 line_num = l; |
79 column_num = c; | 71 column_num = c; |
80 type_tag = sym_rec_token; | 72 type_tag = sym_rec_token; |
128 { | 120 { |
129 assert (type_tag == ettype_token); | 121 assert (type_tag == ettype_token); |
130 return et; | 122 return et; |
131 } | 123 } |
132 | 124 |
133 token::plot_tok_type | |
134 token::pttype (void) | |
135 { | |
136 assert (type_tag == pttype_token); | |
137 return pt; | |
138 } | |
139 | |
140 symbol_table::symbol_record * | 125 symbol_table::symbol_record * |
141 token::sym_rec (void) | 126 token::sym_rec (void) |
142 { | 127 { |
143 assert (type_tag == sym_rec_token); | 128 assert (type_tag == sym_rec_token); |
144 return sr; | 129 return sr; |