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:
585 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * The tokens returned by the scanner.
|
---|
3 | *
|
---|
4 | */
|
---|
5 | class Yytoken {
|
---|
6 | public int m_index;
|
---|
7 | public String m_text;
|
---|
8 | public int m_line;
|
---|
9 | public int m_charBegin;
|
---|
10 | public int m_charEnd;
|
---|
11 |
|
---|
12 | Yytoken (int index, String text, int line, int charBegin, int charEnd) {
|
---|
13 | m_index = index;
|
---|
14 | m_text = text;
|
---|
15 | m_line = line;
|
---|
16 | m_charBegin = charBegin;
|
---|
17 | m_charEnd = charEnd;
|
---|
18 | }
|
---|
19 |
|
---|
20 | public String toString() {
|
---|
21 | return "Text : "+m_text+
|
---|
22 | "\nindex : "+m_index+
|
---|
23 | "\nline : "+m_line+
|
---|
24 | "\ncBeg. : "+m_charBegin+
|
---|
25 | "\ncEnd. : "+m_charEnd;
|
---|
26 | }
|
---|
27 | }
|
---|
28 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.