1 /**
2 * AUTOHIT 2003
3 * Copyright Erich P Gatejen (c) 1989,1997,2003,2004
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Additional license information can be found in the documentation.
19 * @author Erich P Gatejen
20 */
21 package autohit.creator;
22
23 /**
24 * SimLanguage interface
25 *
26 * @author Erich P. Gatejen
27 * @version 1.0
28 * <i>Version History</i>
29 * <code>EPG - New - 13Jul03
30 *
31 */
32 public interface SimLanguage {
33
34 // Lexical attributes
35 public final static String ATTR_NAME = "name";
36 public final static String ATTR_METHOD = "method";
37 public final static String ATTR_VALUE = "value";
38 public final static String ATTR_TYPE = "type";
39 public final static String ATTR_EVALUATOR = "eval";
40 public final static String ATTR_REFERENCE = "ref";
41 public final static String ATTR_LEFT = "left";
42 public final static String ATTR_OPERATOR = "oper";
43 public final static String ATTR_OUTPUT = "output";
44 public final static String ATTR_RESULT = "result";
45 public final static String ATTR_COUNT = "count";
46 public final static String ATTR_BUFFER = "buffer";
47 public final static String ATTR_NEW = "new";
48 public final static String ATTR_UID = "uid";
49 public final static String ATTR_VERSIONNUMBER = "num";
50 public final static String ATTR_CLEAR = "clear";
51 public final static String ATTR_ITEM = "item";
52 public final static String ATTR_LABEL = "label";
53
54 // Literals
55 public final static String LITERAL_ZERO = "0";
56 public final static String LITERAL_ONE = "1";
57
58 // Operations
59 public final static String IF_OPERATION = "-";
60 public final static String MINUS_OPERATION = "-";
61 public final static String EQ_OPERATION = "=";
62 public final static char cEQ_OPERATION = '=';
63
64 // Operation flags
65 public final static int EQ = 0;
66 public final static int LT = 1;
67 public final static int GT = 2;
68 public final static int NOT = 3;
69
70 // Operation strings
71 public final static String EQ_STRING = "eq";
72 public final static String LT_STRING = "lt";
73 public final static String GT_STRING = "gt";
74 public final static String NOT_STRING = "not";
75
76 public final static int NOT_ZERO = -1;
77 public final static int ZERO = 0;
78
79 }
|