source: other-projects/rsyntax-textarea/devel-packages/jflex-1.4.3/examples/interpreter/SymtabEntry.java@ 25584

Last change on this file since 25584 was 25584, checked in by davidb, 12 years ago

Initial cut an a text edit area for GLI that supports color syntax highlighting

File size: 1.9 KB
Line 
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Copyright (C) 2001 Gerwin Klein <[email protected]> *
3 * Copyright (C) 2001 Bernhard Rumpe <[email protected]> *
4 * All rights reserved. *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License. See the file *
8 * COPYRIGHT for more information. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License along *
16 * with this program; if not, write to the Free Software Foundation, Inc., *
17 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
18 * *
19 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
20
21
22/**
23 * Symbol table entry for names, there are subclasses for
24 * variables and functions.
25 *
26 * Defines constants UNKNOWN, VAR und FUN as kinds of
27 * symbol table entries.
28 */
29class SymtabEntry {
30 String name;
31
32 public SymtabEntry(String v) {
33 name=v;
34 }
35
36 public int kind() {
37 return UNKNOWN;
38 }
39
40 public String toString() {
41 return("unknown "+name);
42 }
43
44 static final int UNKNOWN = 12;
45 static final int VAR = 13;
46 static final int FUN = 14;
47}
48
Note: See TracBrowser for help on using the repository browser.