Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 17 of 17) sorted by relevance

/cts/tools/dasm/src/dasm/
DReservedWords.java38 reserved_words.put(".annotation", new token(sym.DANNOTATION));
39 reserved_words.put(".attribute", new token(sym.DATTRIBUTE));
40 reserved_words.put(".bytecode", new token(sym.DBYTECODE));
41 reserved_words.put(".catch", new token(sym.DCATCH));
42 reserved_words.put(".class", new token(sym.DCLASS));
43 reserved_words.put(".deprecated", new token(sym.DDEPRECATED));
44 reserved_words.put(".end", new token(sym.DEND));
45 reserved_words.put(".field", new token(sym.DFIELD));
46 reserved_words.put(".implements", new token(sym.DIMPLEMENTS));
47 reserved_words.put(".inner", new token(sym.DINNER));
[all …]
DScanner.java214 return new token(sym.SEP); in next_token()
225 return new token(sym.EOF); in next_token()
229 return new token(sym.EQ); in next_token()
233 return new token(sym.COLON); in next_token()
290 return new str_token(sym.Insn, str); in next_token()
316 return new relative_number_token(sym.Relative, n); in next_token()
323 return new str_token(sym.Word, str); in next_token()
342 return new str_token(sym.Str, charBuf.toString()); in readQuotedString()
436 return new str_token(sym.Word, charBuf.toString()); in readRegList()
474 return new int_token(sym.Int, num.intValue()); in readNumber()
[all …]
Dsym.java10 public class sym { class
/cts/tools/dasm/src/java_cup/
Dlexer.java114 keywords.put("package", new Integer(sym.PACKAGE)); in init()
115 keywords.put("import", new Integer(sym.IMPORT)); in init()
116 keywords.put("code", new Integer(sym.CODE)); in init()
117 keywords.put("action", new Integer(sym.ACTION)); in init()
118 keywords.put("parser", new Integer(sym.PARSER)); in init()
119 keywords.put("terminal", new Integer(sym.TERMINAL)); in init()
120 keywords.put("non", new Integer(sym.NON)); in init()
121 keywords.put("init", new Integer(sym.INIT)); in init()
122 keywords.put("scan", new Integer(sym.SCAN)); in init()
123 keywords.put("with", new Integer(sym.WITH)); in init()
[all …]
Dterminal_set.java76 public boolean contains(terminal sym) in contains() argument
79 not_null(sym); in contains()
80 return _elements.get(sym.index()); in contains()
131 public boolean add(terminal sym) in add() argument
136 not_null(sym); in add()
139 result = _elements.get(sym.index()); in add()
143 _elements.set(sym.index()); in add()
153 public void remove(terminal sym) in remove() argument
156 not_null(sym); in remove()
157 _elements.clear(sym.index()); in remove()
Dlalr_item.java178 symbol sym; in calc_lookahead() local
196 sym = ((symbol_part)part).the_symbol(); in calc_lookahead()
199 if (!sym.is_non_term()) in calc_lookahead()
201 result.add((terminal)sym); in calc_lookahead()
207 result.add(((non_terminal)sym).first_set()); in calc_lookahead()
210 if (!((non_terminal)sym).nullable()) in calc_lookahead()
234 symbol sym; in lookahead_visible() local
248 sym = ((symbol_part)part).the_symbol(); in lookahead_visible()
251 if (!sym.is_non_term()) return false; in lookahead_visible()
254 if (!((non_terminal)sym).nullable()) return false; in lookahead_visible()
Dsymbol_set.java65 public boolean contains(symbol sym) {return _all.containsKey(sym.name());}; in contains() argument
102 public boolean add(symbol sym) throws internal_error in add() argument
106 not_null(sym); in add()
109 previous = _all.put(sym.name(),sym); in add()
120 public void remove(symbol sym) throws internal_error in remove() argument
122 not_null(sym); in remove()
123 _all.remove(sym.name()); in remove()
Dsymbol_part.java21 public symbol_part(symbol sym, String lab) throws internal_error in symbol_part() argument
25 if (sym == null) in symbol_part()
28 _the_symbol = sym; in symbol_part()
36 public symbol_part(symbol sym) throws internal_error in symbol_part() argument
38 this(sym,null); in symbol_part()
Dlalr_state.java283 symbol sym, sym2; in build_machine() local
323 sym = itm.symbol_after_dot(); in build_machine()
324 if (sym != null) outgoing.add(sym); in build_machine()
330 sym = (symbol)s.nextElement(); in build_machine()
344 if (sym.equals(sym2)) in build_machine()
401 st.add_transition(sym, new_st); in build_machine()
458 symbol sym; in build_table_entries() local
514 sym = trans.on_symbol(); in build_table_entries()
515 if (!sym.is_non_term()) in build_table_entries()
520 if ( our_act_row.under_term[sym.index()].kind() == in build_table_entries()
[all …]
Dlr_item_core.java131 symbol sym; in dot_before_nt() local
134 sym = symbol_after_dot(); in dot_before_nt()
137 if (sym != null && sym.is_non_term()) in dot_before_nt()
138 return (non_terminal)sym; in dot_before_nt()
Dproduction.java613 symbol sym; in check_nullable() local
634 sym = ((symbol_part)part).the_symbol(); in check_nullable()
637 if (!sym.is_non_term()) in check_nullable()
640 else if (!((non_terminal)sym).nullable()) in check_nullable()
667 symbol sym; in check_first_set() local
675 sym = ((symbol_part)rhs(part)).the_symbol(); in check_first_set()
678 if (sym.is_non_term()) in check_first_set()
681 _first_set.add(((non_terminal)sym).first_set()); in check_first_set()
684 if (!((non_terminal)sym).nullable()) in check_first_set()
690 _first_set.add((terminal)sym); in check_first_set()
Dsym.java10 public class sym { class
/cts/tools/dasm/src/java_cup/runtime/
Dlr_parser.java387 protected final short get_action(int state, int sym) in get_action() argument
399 if (tag == sym || tag == -1) in get_action()
413 if (sym == row[probe*2]) in get_action()
415 else if (sym > row[probe*2]) in get_action()
442 protected final short get_reduce(int state, int sym) in get_reduce() argument
455 if (tag == sym || tag == -1) in get_reduce()
509 act = get_action(((symbol)stack.peek()).parse_state, cur_token.sym); in parse()
594 debug_message("Symbol: " + ((symbol)stack.elementAt(i)).sym + in dump_stack()
622 debug_message("# Shift under term #" + shift_tkn.sym + in debug_shift()
661 debug_message("# Current token is #" + cur_token.sym); in debug_parse()
[all …]
Dsymbol.java26 sym = sym_num; in symbol()
41 public int sym; field in symbol
/cts/tools/dasm/etc/
Djava_cup-new.jar ... symbol extends java.lang.Object { public int sym public int parse_state public void <init> (int ...
Djava_cup.jarMETA-INF/ META-INF/MANIFEST.MF java_cup/ java_cup/action_part.class action_part ...
Djava_cup.jar.oldMETA-INF/ META-INF/MANIFEST.MF java_cup/ java_cup/action_part.class action_part ...