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:
511 bytes
|
Line | |
---|
1 | class Utility {
|
---|
2 |
|
---|
3 | private static final String errorMsg[] = {
|
---|
4 | "Error: Unmatched end-of-comment punctuation.",
|
---|
5 | "Error: Unmatched start-of-comment punctuation.",
|
---|
6 | "Error: Unclosed string.",
|
---|
7 | "Error: Illegal character."
|
---|
8 | };
|
---|
9 |
|
---|
10 | public static final int E_ENDCOMMENT = 0;
|
---|
11 | public static final int E_STARTCOMMENT = 1;
|
---|
12 | public static final int E_UNCLOSEDSTR = 2;
|
---|
13 | public static final int E_UNMATCHED = 3;
|
---|
14 |
|
---|
15 | public static void error(int code) {
|
---|
16 | System.out.println(errorMsg[code]);
|
---|
17 | }
|
---|
18 | }
|
---|
19 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.