Last sync 2016.04.01
[deliverable/titan.core.git] / compiler2 / ttcn3 / compiler.l
index 4497b6ca79a5d4132311a5fafbfdf961a6625a9e..b8eebe8e9648d7c5db6194243f318a545be3c452 100644 (file)
@@ -1,9 +1,25 @@
 /******************************************************************************
- * Copyright (c) 2000-2014 Ericsson Telecom AB
+ * Copyright (c) 2000-2016 Ericsson Telecom AB
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *   Baji, Laszlo
+ *   Balasko, Jeno
+ *   Baranyi, Botond
+ *   Cserveni, Akos
+ *   Delic, Adam
+ *   Feher, Csaba
+ *   Forstner, Matyas
+ *   Kovacs, Ferenc
+ *   Kremer, Peter
+ *   Raduly, Csaba
+ *   Szabados, Kristof
+ *   Szabo, Janos Zoltan – initial implementation
+ *   Zalanyi, Balazs Andor
+ *
  ******************************************************************************/
 %option noyywrap
 %option never-interactive
@@ -256,10 +272,6 @@ TITAN "$#&&&(#TITANERRONEOUS$#&&^#% "
 }
 
 {LINECOMMENT} {
-  Location loc(infile, current_line, current_column, current_line,
-    current_column + yyleng);
-  loc.error("Unterminated line comment (missing newline character at the end "
-    "of file)");
   current_column += yyleng;
 }
 
@@ -499,13 +511,18 @@ with              RETURN(WithKeyword);
 xor            RETURN(XorKeyword);
 xor4b          RETURN(Xor4bKeyword);
 
+  /* modifier keywords */
+
+"@nocase" RETURN(NocaseKeyword);
+"@lazy"   RETURN(LazyKeyword);
+
   /* special TITAN specific keywords */
 
 "@try"    RETURN(TitanSpecificTryKeyword);
 "@catch"  RETURN(TitanSpecificCatchKeyword);
-"@lazy"   RETURN(TitanSpecificLazyKeyword);
 "@profiler" RETURN(TitanSpecificProfilerKeyword);
 
+
        /* Predefined function identifiers */
 
 bit2hex                RETURN(bit2hexKeyword);
@@ -523,6 +540,7 @@ hex2oct             RETURN(hex2octKeyword);
 hex2str                RETURN(hex2strKeyword);
 int2bit                RETURN(int2bitKeyword);
 int2char       RETURN(int2charKeyword);
+int2enum  RETURN(int2enumKeyword);
 int2float      RETURN(int2floatKeyword);
 int2hex                RETURN(int2hexKeyword);
 int2oct                RETURN(int2octKeyword);
This page took 0.0264 seconds and 5 git commands to generate.