source: other-projects/rsyntax-textarea/devel-packages/jflex-1.4.3/examples/simple/Yytoken.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: 534 bytes
Line 
1class Yytoken {
2 public int m_index;
3 public String m_text;
4 public int m_line;
5 public int m_charBegin;
6 public int m_charEnd;
7
8 Yytoken (int index, String text, int line, int charBegin, int charEnd) {
9 m_index = index;
10 m_text = text;
11 m_line = line;
12 m_charBegin = charBegin;
13 m_charEnd = charEnd;
14 }
15
16 public String toString() {
17 return "Text : "+m_text+
18 "\nindex : "+m_index+
19 "\nline : "+m_line+
20 "\ncBeg. : "+m_charBegin+
21 "\ncEnd. : "+m_charEnd;
22 }
23}
24
Note: See TracBrowser for help on using the repository browser.