start of new file
[IRC.git] / Robust / src / Lex / Lexer.java
index 1f8775d69a44e81dd9bd70003fec10eccc1ff8d7..1d7e461026fe987f4e0e7722215955f527a672cd 100644 (file)
@@ -89,7 +89,7 @@ public class Lexer {
     } while (!(ie instanceof Token));
     endpos = lineL.head + line_pos - 1;
 
-    //System.out.println(ie.toString()); // uncomment to debug lexer.
+    // System.out.println(ie.toString()); // uncomment to debug lexer.
     java_cup.runtime.Symbol sym = ((Token)ie).token();
     // fix up left/right positions.
     sym.left = startpos; sym.right = endpos;
@@ -244,16 +244,18 @@ public class Lexer {
   }
 
   static final String[] keywords = new String[] {
-    "abstract", "assert", "boolean", "break", "byte", "case", "catch", "char",
+    "abstract", "assert", "atomic", "boolean", "break", "byte", "case", "catch", "char",
     "class", "const", "continue", "default", "do", "double", "else", "enum",
-    "extends", "final", "finally", "float", "for", "goto", "if", 
-    "implements", "import", "instanceof", "int", "interface", "long", 
-    "native", "new", "package", "private", "protected", "public", 
-    "return", "short", "static", "strictfp", "super", "switch",
-    "synchronized", "this", "throw", "throws", "transient", "try", "void",
-    "volatile", "while", 
-    //keywords for failure aware computation
-    "flag", "tag", "task", "taskexit"};
+    "extends", "external", "final", "finally", 
+    "flag", //keyword for failure aware computation
+    "float", "for", "global", "goto", "if", 
+    "implements", "import", "instanceof", "int", "interface", "isavailable",
+    "long",  
+    "native", "new", "optional", "package", "private", "protected", "public", 
+    "return", "short", "static", "strictfp", "super", "switch", "synchronized",
+    "tag", "task", "taskexit", //keywords for failure aware computation
+    "this", "throw", "throws", "transient", "try", "void",
+    "volatile", "while"};
   Token getIdentifier() {
     // Get id string.
     StringBuffer sb = new StringBuffer().append(consume());