1 | /* |
---|
2 | * Created on Jan 27, 2005 |
---|
3 | * |
---|
4 | * TODO To change the template for this generated file go to |
---|
5 | * Window - Preferences - Java - Code Style - Code Templates |
---|
6 | */ |
---|
7 | package org.modelica.mdt.editor; |
---|
8 | |
---|
9 | /** |
---|
10 | * @author Peter Bunus |
---|
11 | * |
---|
12 | * TODO To change the template for this generated type comment go to |
---|
13 | * Window - Preferences - Java - Code Style - Code Templates |
---|
14 | */ |
---|
15 | public interface ModelicaSyntax { |
---|
16 | public static final String[] reservedwords = {"algorithm", "and", |
---|
17 | "annotation", "block", "boundary", "Code", "class", "connect", |
---|
18 | "connector", "constant", "discrete", "each", "else", "elseif", |
---|
19 | "elsewhen", "end", "enumeration", "equation", "encapsulated", |
---|
20 | "extends", "external", "false", "final", "flow", "for", "function", |
---|
21 | "if", "import", "in", "initial", "inner", "input", "loop", "model", |
---|
22 | "not", "outer", "overload", "or", "output", "package", "parameter", |
---|
23 | "partial", "protected", "public", "record", "redeclare", "replaceable", |
---|
24 | "results", "start", "then", "true", "type", "unsigned_real", "when", "while", "within"}; |
---|
25 | |
---|
26 | public static final String[] predicates = {"UNION", "IS", |
---|
27 | "IS NULL", "NOT NULL", "IS OF", "IN", "BETWEEN", |
---|
28 | "OVERLAPS", "LIKE", "< >", "=", "<", ">", "<=", ">=", |
---|
29 | "NOT", "AND", "OR", "+", "-", "%", "|", ":", |
---|
30 | ".", "[ ]", "::", "SOME", "ANY", "ALL", "EXISTS", "union", |
---|
31 | "is", "is null", "not null", "is of", "in", "between", |
---|
32 | "overlaps", "like", "not", "and", "or", "some", "any", |
---|
33 | "all", "exists"}; |
---|
34 | public static final String[] types = {"Real", "Integer", "Boolean"}; |
---|
35 | public static final String[] constants = {"FALSE", "NULL", |
---|
36 | "TRUE", "false", "true", "null"}; |
---|
37 | public static final String[] functions = {"ABS", "ABSVAL", |
---|
38 | "ACOS", "ASCII", "ASIN", "ATAN", "ATAN2", "BIGINT", |
---|
39 | "BLOB", "CEILING", "CHAR", "CHR", "CLOB", "COALESCE", |
---|
40 | "CONCAT", "CORRELATION", "COS", "COT", "COUNT", |
---|
41 | "COUNT_BIG", "COVARIANCE", "DATE", "DAY", "DAYNAME", |
---|
42 | "DAYOFWEEK", "DAYOFWEEK_ISO", "DAYOFYEAR", "DAYS", |
---|
43 | "DBCLOB", "DECIMAL", "DEGREES", "DEREF", "DIFFERENCE", |
---|
44 | "DIGITS", "DLCOMMENT", "DLLINKTYPE", "DLURLCOMPLETE", |
---|
45 | "DLURLPATH", "DLURLPATHONLY", "DLURLSCHEME", |
---|
46 | "DLURLSERVER", "DLVALUE", "DOUBLE", "EVENT_MON_STATE", |
---|
47 | "EXP", "FLOAT", "FLOOR", "GENERATE_UNIQUE", "GRAPHIC", |
---|
48 | "GROUPING", "HEX", "HOUR", "INSERT", "INTEGER", |
---|
49 | "JULIAN_DAY", "LCASE", "LCASE", "LEFT", "LENGTH", "LN", |
---|
50 | "LOCATE", "LOG", "LOG10", "LONG_VARCHAR", |
---|
51 | "LONG_VARGRAPHIC", "LTRIM", "LTRIM", "MAX", "MICROSECOND", |
---|
52 | "MIDNIGHT_SECONDS", "MIN", "MINUTE", "MOD", "MONTH", |
---|
53 | "MONTHNAME", "NODENUMBER", "NULLIF", "PARTITION", |
---|
54 | "POSSTR", "POWER", "QUARTER", "RADIANS", "RAISE_ERROR", |
---|
55 | "RAND", "REAL", "REPEAT", "REPLACE", "RIGHT", "ROUND", |
---|
56 | "RTRIM", "RTRIM", "SECOND", "SIGN", "SIN", "SMALLINT", |
---|
57 | "SOUNDEX", "SPACE", "SQLCACHE_SNAPSHOT", "SQRT", "STDDEV", |
---|
58 | "SUBSTR", "SUM", "TABLE_NAME", "TABLE_SCHEMA", "TAN", |
---|
59 | "TIME", "TIMESTAMP", "TIMESTAMP_ISO", "TIMESTAMPDIFF", |
---|
60 | "TRANSLATE", "TRUNCATE", "TRUNC", "TYPE_ID", "TYPE_NAME", |
---|
61 | "TYPE_SCHEMA", "UCASE", "UPPER", "VALUE", "VARCHAR", |
---|
62 | "VARGRAPHIC", "VARIANCE", "WEEK", "WEEK_ISO", "YEAR", |
---|
63 | "abs", "absval", "acos", "ascii", "asin", "atan", "atan2", |
---|
64 | "bigint", "blob", "ceiling", "char", "chr", "clob", |
---|
65 | "coalesce", "concat", "correlation", "cos", "cot", |
---|
66 | "count", "count_big", "covariance", "date", "day", |
---|
67 | "dayname", "dayofweek", "dayofweek_iso", "dayofyear", |
---|
68 | "days", "dbclob", "decimal", "degrees", "deref", |
---|
69 | "difference", "digits", "dlcomment", "dllinktype", |
---|
70 | "dlurlcomplete", "dlurlpath", "dlurlpathonly", |
---|
71 | "dlurlscheme", "dlurlserver", "dlvalue", "double", |
---|
72 | "event_mon_state", "exp", "float", "floor", |
---|
73 | "generate_unique", "graphic", "grouping", "hex", "hour", |
---|
74 | "insert", "integer", "julian_day", "lcase", "lcase", |
---|
75 | "left", "length", "ln", "locate", "log", "log10", |
---|
76 | "long_varchar", "long_vargraphic", "ltrim", "ltrim", |
---|
77 | "max", "microsecond", "midnight_seconds", "min", "minute", |
---|
78 | "mod", "month", "monthname", "nodenumber", "nullif", |
---|
79 | "partition", "posstr", "power", "quarter", "radians", |
---|
80 | "raise_error", "rand", "real", "repeat", "replace", |
---|
81 | "right", "round", "rtrim", "rtrim", "second", "sign", |
---|
82 | "sin", "smallint", "soundex", "space", |
---|
83 | "sqlcache_snapshot", "sqrt", "stddev", "substr", "sum", |
---|
84 | "table_name", "table_schema", "tan", "time", "timestamp", |
---|
85 | "timestamp_iso", "timestampdiff", "translate", "truncate", |
---|
86 | "trunc", "type_id", "type_name", "type_schema", "ucase", |
---|
87 | "upper", "value", "varchar", "vargraphic", "variance", |
---|
88 | "week", "week_iso", "year"}; |
---|
89 | Object[] allWords = {reservedwords, predicates, types, |
---|
90 | constants, functions}; |
---|
91 | } |
---|