-/* The following code was generated by JFlex 1.6.1 */
-
+// DO NOT EDIT\r
+// Generated by JFlex 1.8.2 http://jflex.de/\r
+// source: jflex/function.jflex\r
+\r
//CHECKSTYLE:OFF
package org.scilab.modules.scinotes;
import javax.swing.text.Element;
@javax.annotation.Generated("JFlex")
-@SuppressWarnings("fallthrough")
-
-/**
- * This class is a scanner generated by
- * <a href="http://www.jflex.de/">JFlex</a> 1.6.1
- * from the specification file <tt>modules/scinotes/src/java/jflex/function.jflex</tt>
- */
-public final class FunctionScanner {
-
- /** This character denotes the end of file */
- public static final int YYEOF = -1;
-
- /** initial size of the lookahead buffer */
- private static final int ZZ_BUFFERSIZE = 16384;
-
- /** lexical states */
- public static final int YYINITIAL = 0;
- public static final int FUNCTION = 2;
- public static final int TYPEID = 4;
- public static final int FUNNAME = 6;
- public static final int RETS = 8;
- public static final int ARGS = 10;
- public static final int BROKEN = 12;
-
- /**
- * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
- * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l
- * at the beginning of a line
- * l is of the form l = 2*k, k a non negative integer
- */
- private static final int ZZ_LEXSTATE[] = {
- 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6
- };
-
- /**
- * Translates characters to character classes
- */
- private static final String ZZ_CMAP_PACKED =
- "\11\0\1\1\1\2\1\4\1\4\1\4\22\0\1\1\1\10\1\0"+
- "\2\10\1\6\2\0\1\25\1\12\2\0\1\26\1\0\1\5\1\3"+
- "\12\7\3\0\1\11\1\0\1\10\1\0\32\10\1\22\1\0\1\27"+
- "\1\0\1\10\1\0\2\10\1\16\1\24\1\23\1\13\2\10\1\20"+
- "\4\10\1\15\1\21\4\10\1\17\1\14\5\10\12\0\1\4\u1fa2\0"+
- "\1\4\1\4\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\udfe6\0";
-
- /**
- * Translates characters to character classes
- */
- private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);
-
- /**
- * Translates DFA states to action switch labels.
- */
- private static final int [] ZZ_ACTION = zzUnpackAction();
-
- private static final String ZZ_ACTION_PACKED_0 =
- "\7\0\4\1\1\2\1\3\1\4\1\5\1\1\1\6"+
- "\1\7\1\1\1\10\1\1\1\11\1\12\1\4\1\13"+
- "\1\4\2\1\1\14\1\1\1\15\1\0\1\15\13\0"+
- "\1\16\5\0\1\17\1\0\1\20\15\0\1\21\2\0"+
- "\2\22";
-
- private static int [] zzUnpackAction() {
- int [] result = new int[71];
- int offset = 0;
- offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackAction(String packed, int offset, int [] result) {
- int i = 0; /* index in packed string */
- int j = offset; /* index in unpacked array */
- int l = packed.length();
- while (i < l) {
- int count = packed.charAt(i++);
- int value = packed.charAt(i++);
- do result[j++] = value; while (--count > 0);
- }
- return j;
- }
-
-
- /**
- * Translates a state to a row index in the transition table
- */
- private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
-
- private static final String ZZ_ROWMAP_PACKED_0 =
- "\0\0\0\30\0\60\0\110\0\140\0\170\0\220\0\250"+
- "\0\300\0\330\0\360\0\u0108\0\250\0\u0120\0\250\0\u0138"+
- "\0\u0150\0\250\0\u0168\0\250\0\u0180\0\u0198\0\250\0\u01b0"+
- "\0\u01c8\0\250\0\u01e0\0\u01f8\0\u0210\0\u0228\0\u0240\0\u0240"+
- "\0\u0258\0\300\0\330\0\u0270\0\u0288\0\u02a0\0\u0138\0\u02b8"+
- "\0\u0168\0\u0180\0\u02d0\0\u01e0\0\u02e8\0\u0300\0\u0228\0\u0258"+
- "\0\u0318\0\u0330\0\u0348\0\u0360\0\250\0\u0378\0\u0348\0\u0390"+
- "\0\u03a8\0\u03c0\0\u03d8\0\u03f0\0\u0408\0\u0420\0\u0438\0\u0450"+
- "\0\u0468\0\u0480\0\u0498\0\u04b0\0\u04c8\0\u04e0\0\250";
-
- private static int [] zzUnpackRowMap() {
- int [] result = new int[71];
- int offset = 0;
- offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackRowMap(String packed, int offset, int [] result) {
- int i = 0; /* index in packed string */
- int j = offset; /* index in unpacked array */
- int l = packed.length();
- while (i < l) {
- int high = packed.charAt(i++) << 16;
- result[j++] = high | packed.charAt(i++);
- }
- return j;
- }
-
- /**
- * The transition table of the DFA
- */
- private static final int [] ZZ_TRANS = zzUnpackTrans();
-
- private static final String ZZ_TRANS_PACKED_0 =
- "\1\10\1\11\2\10\1\0\6\10\1\12\7\10\1\13"+
- "\10\10\1\0\1\10\1\14\1\10\1\14\2\10\7\14"+
- "\1\15\2\14\4\10\1\16\1\17\1\20\1\0\4\10"+
- "\1\21\13\10\1\22\3\10\1\23\1\24\1\25\1\0"+
- "\1\10\1\26\1\10\1\26\2\10\7\26\1\10\2\26"+
- "\1\27\3\10\1\30\2\10\1\0\1\10\1\31\1\10"+
- "\1\31\2\10\7\31\1\10\2\31\1\10\1\32\1\33"+
- "\1\10\1\30\2\10\1\0\1\34\1\35\1\10\1\35"+
- "\1\10\1\36\7\35\1\10\2\35\1\10\1\32\1\10"+
- "\4\37\1\40\1\41\22\37\31\0\1\42\11\0\1\43"+
- "\7\0\1\44\20\0\1\45\30\0\1\46\21\0\2\14"+
- "\2\0\7\14\1\0\2\14\4\0\1\16\1\17\1\47"+
- "\5\0\1\21\21\0\1\50\25\0\1\21\27\0\1\51"+
- "\1\24\1\52\21\0\1\27\5\0\1\53\33\0\2\26"+
- "\2\0\7\26\1\0\2\26\4\0\1\30\35\0\2\31"+
- "\2\0\7\31\1\0\2\31\4\0\1\54\7\0\1\55"+
- "\23\0\1\56\31\0\2\35\2\0\7\35\1\0\2\35"+
- "\4\0\1\57\1\24\1\52\24\0\5\40\1\60\27\40"+
- "\1\56\22\40\15\0\1\61\27\0\1\62\36\0\1\63"+
- "\3\0\2\50\1\17\1\50\1\0\23\50\2\53\1\24"+
- "\1\53\1\0\23\53\1\0\1\55\27\0\1\64\1\65"+
- "\1\66\1\0\1\56\46\0\1\67\21\0\1\70\24\0"+
- "\1\71\15\0\1\64\1\65\1\66\27\0\1\72\43\0"+
- "\1\73\24\0\1\74\13\0\2\72\1\65\1\72\1\0"+
- "\23\72\20\0\1\75\24\0\1\76\33\0\1\77\24\0"+
- "\1\100\26\0\1\101\31\0\1\102\11\0\1\103\20\0"+
- "\1\15\25\0\1\104\10\0\1\103\47\0\1\105\23\0"+
- "\1\106\12\0\7\107\2\0\2\107\7\0\1\107\2\0"+
- "\3\107";
-
- private static int [] zzUnpackTrans() {
- int [] result = new int[1272];
- int offset = 0;
- offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackTrans(String packed, int offset, int [] result) {
- int i = 0; /* index in packed string */
- int j = offset; /* index in unpacked array */
- int l = packed.length();
- while (i < l) {
- int count = packed.charAt(i++);
- int value = packed.charAt(i++);
- value--;
- do result[j++] = value; while (--count > 0);
- }
- return j;
- }
-
-
- /* error codes */
- private static final int ZZ_UNKNOWN_ERROR = 0;
- private static final int ZZ_NO_MATCH = 1;
- private static final int ZZ_PUSHBACK_2BIG = 2;
-
- /* error messages for the codes above */
- private static final String ZZ_ERROR_MSG[] = {
- "Unknown internal scanner error",
- "Error: could not match input",
- "Error: pushback value was too large"
- };
-
- /**
- * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>
- */
- private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
-
- private static final String ZZ_ATTRIBUTE_PACKED_0 =
- "\7\0\1\11\4\1\1\11\1\1\1\11\2\1\1\11"+
- "\1\1\1\11\2\1\1\11\2\1\1\11\5\1\1\0"+
- "\1\1\13\0\1\1\5\0\1\1\1\0\1\11\15\0"+
- "\1\1\2\0\1\1\1\11";
-
- private static int [] zzUnpackAttribute() {
- int [] result = new int[71];
- int offset = 0;
- offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackAttribute(String packed, int offset, int [] result) {
- int i = 0; /* index in packed string */
- int j = offset; /* index in unpacked array */
- int l = packed.length();
- while (i < l) {
- int count = packed.charAt(i++);
- int value = packed.charAt(i++);
- do result[j++] = value; while (--count > 0);
- }
- return j;
- }
-
- /** the input device */
- private java.io.Reader zzReader;
-
- /** the current state of the DFA */
- private int zzState;
-
- /** the current lexical state */
- private int zzLexicalState = YYINITIAL;
-
- /** this buffer contains the current text to be matched and is
- the source of the yytext() string */
- private char zzBuffer[] = new char[ZZ_BUFFERSIZE];
-
- /** the textposition at the last accepting state */
- private int zzMarkedPos;
-
- /** the current text position in the buffer */
- private int zzCurrentPos;
-
- /** startRead marks the beginning of the yytext() string in the buffer */
- private int zzStartRead;
-
- /** endRead marks the last character in the buffer, that has been read
- from input */
- private int zzEndRead;
-
- /** number of newlines encountered up to the start of the matched text */
- private int yyline;
-
- /** the number of characters up to the start of the matched text */
- private int yychar;
-
- /**
- * the number of characters from the last newline up to the start of the
- * matched text
- */
- private int yycolumn;
-
- /**
- * zzAtBOL == true <=> the scanner is currently at the beginning of a line
- */
- private boolean zzAtBOL = true;
-
- /** zzAtEOF == true <=> the scanner is at the EOF */
- private boolean zzAtEOF;
-
- /** denotes if the user-EOF-code has already been executed */
- private boolean zzEOFDone;
-
- /**
- * The number of occupied positions in zzBuffer beyond zzEndRead.
- * When a lead/high surrogate has been read from the input stream
- * into the final zzBuffer position, this will have a value of 1;
- * otherwise, it will have a value of 0.
- */
- private int zzFinalHighSurrogate = 0;
-
- /* user code: */
+\r
+// See https://github.com/jflex-de/jflex/issues/222\r
+@SuppressWarnings("FallThrough")\r
+public final class FunctionScanner {\r
+\r
+ /** This character denotes the end of file. */\r
+ public static final int YYEOF = -1;\r
+\r
+ /** Initial size of the lookahead buffer. */\r
+ private static final int ZZ_BUFFERSIZE = 16384;\r
+\r
+ // Lexical states.\r
+ public static final int YYINITIAL = 0;\r
+ public static final int FUNCTION = 2;\r
+ public static final int TYPEID = 4;\r
+ public static final int FUNNAME = 6;\r
+ public static final int RETS = 8;\r
+ public static final int ARGS = 10;\r
+ public static final int BROKEN = 12;\r
+\r
+ /**\r
+ * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l\r
+ * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l\r
+ * at the beginning of a line\r
+ * l is of the form l = 2*k, k a non negative integer\r
+ */\r
+ private static final int ZZ_LEXSTATE[] = {\r
+ 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6\r
+ };\r
+\r
+ /**\r
+ * Top-level table for translating characters to character classes\r
+ */\r
+ private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top();\r
+\r
+ private static final String ZZ_CMAP_TOP_PACKED_0 =\r
+ "\1\0\37\u0100\1\u0200\267\u0100\10\u0300\u1020\u0100";\r
+\r
+ private static int [] zzUnpackcmap_top() {\r
+ int [] result = new int[4352];\r
+ int offset = 0;\r
+ offset = zzUnpackcmap_top(ZZ_CMAP_TOP_PACKED_0, offset, result);\r
+ return result;\r
+ }\r
+\r
+ private static int zzUnpackcmap_top(String packed, int offset, int [] result) {\r
+ int i = 0; /* index in packed string */\r
+ int j = offset; /* index in unpacked array */\r
+ int l = packed.length();\r
+ while (i < l) {\r
+ int count = packed.charAt(i++);\r
+ int value = packed.charAt(i++);\r
+ do result[j++] = value; while (--count > 0);\r
+ }\r
+ return j;\r
+ }\r
+\r
+\r
+ /**\r
+ * Second-level tables for translating characters to character classes\r
+ */\r
+ private static final int [] ZZ_CMAP_BLOCKS = zzUnpackcmap_blocks();\r
+\r
+ private static final String ZZ_CMAP_BLOCKS_PACKED_0 =\r
+ "\11\0\1\1\1\2\3\3\22\0\1\1\1\4\1\0"+\r
+ "\2\4\1\5\2\0\1\6\1\7\2\0\1\10\1\0"+\r
+ "\1\11\1\12\12\13\3\0\1\14\1\0\1\4\1\0"+\r
+ "\32\4\1\15\1\0\1\16\1\0\1\4\1\0\2\4"+\r
+ "\1\17\1\20\1\21\1\22\2\4\1\23\4\4\1\24"+\r
+ "\1\25\4\4\1\26\1\27\5\4\12\0\1\3\u01a2\0"+\r
+ "\2\3\326\0\u0100\3";\r
+\r
+ private static int [] zzUnpackcmap_blocks() {\r
+ int [] result = new int[1024];\r
+ int offset = 0;\r
+ offset = zzUnpackcmap_blocks(ZZ_CMAP_BLOCKS_PACKED_0, offset, result);\r
+ return result;\r
+ }\r
+\r
+ private static int zzUnpackcmap_blocks(String packed, int offset, int [] result) {\r
+ int i = 0; /* index in packed string */\r
+ int j = offset; /* index in unpacked array */\r
+ int l = packed.length();\r
+ while (i < l) {\r
+ int count = packed.charAt(i++);\r
+ int value = packed.charAt(i++);\r
+ do result[j++] = value; while (--count > 0);\r
+ }\r
+ return j;\r
+ }\r
+\r
+ /**\r
+ * Translates DFA states to action switch labels.\r
+ */\r
+ private static final int [] ZZ_ACTION = zzUnpackAction();\r
+\r
+ private static final String ZZ_ACTION_PACKED_0 =\r
+ "\7\0\4\1\1\2\1\3\1\4\1\5\1\6\1\1"+\r
+ "\1\7\1\1\1\10\1\11\1\12\1\1\1\4\1\13"+\r
+ "\1\4\1\1\1\14\2\1\1\15\1\0\1\15\13\0"+\r
+ "\1\16\4\0\1\17\2\0\1\20\16\0\1\21\1\0"+\r
+ "\2\22";\r
+\r
+ private static int [] zzUnpackAction() {\r
+ int [] result = new int[71];\r
+ int offset = 0;\r
+ offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);\r
+ return result;\r
+ }\r
+\r
+ private static int zzUnpackAction(String packed, int offset, int [] result) {\r
+ int i = 0; /* index in packed string */\r
+ int j = offset; /* index in unpacked array */\r
+ int l = packed.length();\r
+ while (i < l) {\r
+ int count = packed.charAt(i++);\r
+ int value = packed.charAt(i++);\r
+ do result[j++] = value; while (--count > 0);\r
+ }\r
+ return j;\r
+ }\r
+\r
+\r
+ /**\r
+ * Translates a state to a row index in the transition table\r
+ */\r
+ private static final int [] ZZ_ROWMAP = zzUnpackRowMap();\r
+\r
+ private static final String ZZ_ROWMAP_PACKED_0 =\r
+ "\0\0\0\30\0\60\0\110\0\140\0\170\0\220\0\250"+\r
+ "\0\300\0\330\0\360\0\u0108\0\250\0\u0120\0\250\0\250"+\r
+ "\0\u0138\0\u0150\0\u0168\0\250\0\u0180\0\250\0\u0198\0\u01b0"+\r
+ "\0\u01c8\0\250\0\u01e0\0\u01f8\0\u0210\0\u0228\0\u0240\0\u0240"+\r
+ "\0\u0258\0\300\0\u0270\0\360\0\u0288\0\u02a0\0\u0138\0\u02b8"+\r
+ "\0\u0168\0\u0198\0\u02d0\0\u01e0\0\u02e8\0\u0210\0\u0300\0\u0258"+\r
+ "\0\u0318\0\u0330\0\u0348\0\u0360\0\250\0\u0378\0\u0330\0\u0390"+\r
+ "\0\u03a8\0\u03c0\0\u03d8\0\u03f0\0\u0408\0\u0420\0\u0438\0\u0450"+\r
+ "\0\u0468\0\u0480\0\u0498\0\u04b0\0\u04c8\0\u04e0\0\250";\r
+\r
+ private static int [] zzUnpackRowMap() {\r
+ int [] result = new int[71];\r
+ int offset = 0;\r
+ offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);\r
+ return result;\r
+ }\r
+\r
+ private static int zzUnpackRowMap(String packed, int offset, int [] result) {\r
+ int i = 0; /* index in packed string */\r
+ int j = offset; /* index in unpacked array */\r
+ int l = packed.length();\r
+ while (i < l) {\r
+ int high = packed.charAt(i++) << 16;\r
+ result[j++] = high | packed.charAt(i++);\r
+ }\r
+ return j;\r
+ }\r
+\r
+ /**\r
+ * The transition table of the DFA\r
+ */\r
+ private static final int [] ZZ_TRANS = zzUnpackTrans();\r
+\r
+ private static final String ZZ_TRANS_PACKED_0 =\r
+ "\1\10\1\11\1\10\1\0\15\10\1\12\1\13\10\10"+\r
+ "\1\0\2\14\7\10\1\15\1\10\11\14\1\10\1\16"+\r
+ "\1\17\1\0\2\10\1\20\3\10\1\21\1\10\1\22"+\r
+ "\14\10\1\23\1\24\1\0\2\25\1\26\3\10\1\27"+\r
+ "\4\10\11\25\1\10\1\30\1\10\1\0\2\31\2\10"+\r
+ "\1\32\5\10\1\33\11\31\1\10\1\30\1\10\1\0"+\r
+ "\2\34\1\10\1\35\1\32\1\36\5\10\11\34\3\37"+\r
+ "\1\40\5\37\1\41\16\37\31\0\1\42\17\0\1\43"+\r
+ "\1\44\31\0\1\45\32\0\1\46\4\0\1\14\6\0"+\r
+ "\1\14\3\0\11\14\1\0\1\16\1\17\7\0\1\47"+\r
+ "\1\0\1\22\25\0\1\50\16\0\1\22\27\0\1\51"+\r
+ "\1\24\3\0\1\26\3\0\1\52\21\0\1\25\6\0"+\r
+ "\1\25\3\0\11\25\12\0\1\53\16\0\1\30\32\0"+\r
+ "\1\31\6\0\1\31\3\0\11\31\1\0\1\54\12\0"+\r
+ "\1\55\17\0\1\34\6\0\1\34\3\0\11\34\1\0"+\r
+ "\1\56\1\24\7\0\1\52\26\0\1\57\16\0\11\40"+\r
+ "\1\60\27\40\1\57\16\40\24\0\1\61\23\0\1\62"+\r
+ "\33\0\1\63\3\0\2\50\1\17\1\0\24\50\2\53"+\r
+ "\1\24\1\0\24\53\1\0\1\55\27\0\1\64\1\65"+\r
+ "\6\0\1\57\1\66\35\0\1\67\31\0\1\70\24\0"+\r
+ "\1\71\11\0\1\64\1\65\7\0\1\66\27\0\1\72"+\r
+ "\44\0\1\73\26\0\1\74\1\0\2\72\1\65\1\0"+\r
+ "\24\72\24\0\1\75\26\0\1\76\23\0\1\77\35\0"+\r
+ "\1\100\30\0\1\101\25\0\1\102\26\0\1\103\5\0"+\r
+ "\1\104\13\0\1\15\37\0\1\105\3\0\1\104\52\0"+\r
+ "\1\106\3\0\4\107\1\0\6\107\1\0\3\107\11\0";\r
+\r
+ private static int [] zzUnpackTrans() {\r
+ int [] result = new int[1272];\r
+ int offset = 0;\r
+ offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);\r
+ return result;\r
+ }\r
+\r
+ private static int zzUnpackTrans(String packed, int offset, int [] result) {\r
+ int i = 0; /* index in packed string */\r
+ int j = offset; /* index in unpacked array */\r
+ int l = packed.length();\r
+ while (i < l) {\r
+ int count = packed.charAt(i++);\r
+ int value = packed.charAt(i++);\r
+ value--;\r
+ do result[j++] = value; while (--count > 0);\r
+ }\r
+ return j;\r
+ }\r
+\r
+\r
+ /** Error code for "Unknown internal scanner error". */\r
+ private static final int ZZ_UNKNOWN_ERROR = 0;\r
+ /** Error code for "could not match input". */\r
+ private static final int ZZ_NO_MATCH = 1;\r
+ /** Error code for "pushback value was too large". */\r
+ private static final int ZZ_PUSHBACK_2BIG = 2;\r
+\r
+ /**\r
+ * Error messages for {@link #ZZ_UNKNOWN_ERROR}, {@link #ZZ_NO_MATCH}, and\r
+ * {@link #ZZ_PUSHBACK_2BIG} respectively.\r
+ */\r
+ private static final String ZZ_ERROR_MSG[] = {\r
+ "Unknown internal scanner error",\r
+ "Error: could not match input",\r
+ "Error: pushback value was too large"\r
+ };\r
+\r
+ /**\r
+ * ZZ_ATTRIBUTE[aState] contains the attributes of state {@code aState}\r
+ */\r
+ private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();\r
+\r
+ private static final String ZZ_ATTRIBUTE_PACKED_0 =\r
+ "\7\0\1\11\4\1\1\11\1\1\2\11\3\1\1\11"+\r
+ "\1\1\1\11\3\1\1\11\5\1\1\0\1\1\13\0"+\r
+ "\1\1\4\0\1\1\2\0\1\11\16\0\1\1\1\0"+\r
+ "\1\1\1\11";\r
+\r
+ private static int [] zzUnpackAttribute() {\r
+ int [] result = new int[71];\r
+ int offset = 0;\r
+ offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);\r
+ return result;\r
+ }\r
+\r
+ private static int zzUnpackAttribute(String packed, int offset, int [] result) {\r
+ int i = 0; /* index in packed string */\r
+ int j = offset; /* index in unpacked array */\r
+ int l = packed.length();\r
+ while (i < l) {\r
+ int count = packed.charAt(i++);\r
+ int value = packed.charAt(i++);\r
+ do result[j++] = value; while (--count > 0);\r
+ }\r
+ return j;\r
+ }\r
+\r
+ /** Input device. */\r
+ private java.io.Reader zzReader;\r
+\r
+ /** Current state of the DFA. */\r
+ private int zzState;\r
+\r
+ /** Current lexical state. */\r
+ private int zzLexicalState = YYINITIAL;\r
+\r
+ /**\r
+ * This buffer contains the current text to be matched and is the source of the {@link #yytext()}\r
+ * string.\r
+ */\r
+ private char zzBuffer[] = new char[ZZ_BUFFERSIZE];\r
+\r
+ /** Text position at the last accepting state. */\r
+ private int zzMarkedPos;\r
+\r
+ /** Current text position in the buffer. */\r
+ private int zzCurrentPos;\r
+\r
+ /** Marks the beginning of the {@link #yytext()} string in the buffer. */\r
+ private int zzStartRead;\r
+\r
+ /** Marks the last character in the buffer, that has been read from input. */\r
+ private int zzEndRead;\r
+\r
+ /**\r
+ * Whether the scanner is at the end of file.\r
+ * @see #yyatEOF\r
+ */\r
+ private boolean zzAtEOF;\r
+\r
+ /**\r
+ * The number of occupied positions in {@link #zzBuffer} beyond {@link #zzEndRead}.\r
+ *\r
+ * <p>When a lead/high surrogate has been read from the input stream into the final\r
+ * {@link #zzBuffer} position, this will have a value of 1; otherwise, it will have a value of 0.\r
+ */\r
+ private int zzFinalHighSurrogate = 0;\r
+\r
+ /** Number of newlines encountered up to the start of the matched text. */\r
+ @SuppressWarnings("unused")\r
+ private int yyline;\r
+\r
+ /** Number of characters from the last newline up to the start of the matched text. */\r
+ @SuppressWarnings("unused")\r
+ private int yycolumn;\r
+\r
+ /** Number of characters up to the start of the matched text. */\r
+ private long yychar;\r
+\r
+ /** Whether the scanner is currently at the beginning of a line. */\r
+ @SuppressWarnings("unused")\r
+ private boolean zzAtBOL = true;\r
+\r
+ /** Whether the user-EOF-code has already been executed. */\r
+ @SuppressWarnings("unused")\r
+ private boolean zzEOFDone;\r
+\r
+ /* user code: */\r
List<String> returnValues;
List<String> argsValues;
String functionName;
this.matchBlock = new MatchingBlockScanner(doc);
}
+ public int yychar() {
+ return (int) yychar;
+ }
+
public String getFunctionName() {
return functionName;
}
this.argsValues = args;
}
}
-
-
- /**
- * Creates a new scanner
- *
- * @param in the java.io.Reader to read input from.
- */
- public FunctionScanner(java.io.Reader in) {
- this.zzReader = in;
- }
-
-
- /**
- * Unpacks the compressed character translation table.
- *
- * @param packed the packed character translation table
- * @return the unpacked character translation table
- */
- private static char [] zzUnpackCMap(String packed) {
- char [] map = new char[0x110000];
- int i = 0; /* index in packed string */
- int j = 0; /* index in unpacked array */
- while (i < 138) {
- int count = packed.charAt(i++);
- char value = packed.charAt(i++);
- do map[j++] = value; while (--count > 0);
- }
- return map;
- }
-
-
- /**
- * Refills the input buffer.
- *
- * @return <code>false</code>, iff there was new input.
- *
- * @exception java.io.IOException if any I/O-Error occurs
- */
- private boolean zzRefill() throws java.io.IOException {
-
- /* first: make room (if you can) */
- if (zzStartRead > 0) {
- zzEndRead += zzFinalHighSurrogate;
- zzFinalHighSurrogate = 0;
- System.arraycopy(zzBuffer, zzStartRead,
- zzBuffer, 0,
- zzEndRead-zzStartRead);
-
- /* translate stored positions */
- zzEndRead-= zzStartRead;
- zzCurrentPos-= zzStartRead;
- zzMarkedPos-= zzStartRead;
- zzStartRead = 0;
- }
-
- /* is the buffer big enough? */
- if (zzCurrentPos >= zzBuffer.length - zzFinalHighSurrogate) {
- /* if not: blow it up */
- char newBuffer[] = new char[zzBuffer.length*2];
- System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
- zzBuffer = newBuffer;
- zzEndRead += zzFinalHighSurrogate;
- zzFinalHighSurrogate = 0;
- }
-
- /* fill the buffer with new input */
- int requested = zzBuffer.length - zzEndRead;
- int numRead = zzReader.read(zzBuffer, zzEndRead, requested);
-
- /* not supposed to occur according to specification of java.io.Reader */
- if (numRead == 0) {
- throw new java.io.IOException("Reader returned 0 characters. See JFlex examples for workaround.");
- }
- if (numRead > 0) {
- zzEndRead += numRead;
- /* If numRead == requested, we might have requested to few chars to
- encode a full Unicode character. We assume that a Reader would
- otherwise never return half characters. */
- if (numRead == requested) {
- if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) {
- --zzEndRead;
- zzFinalHighSurrogate = 1;
- }
- }
- /* potentially more input available */
- return false;
- }
-
- /* numRead < 0 ==> end of stream */
- return true;
- }
-
-
- /**
- * Closes the input stream.
- */
- public final void yyclose() throws java.io.IOException {
- zzAtEOF = true; /* indicate end of file */
- zzEndRead = zzStartRead; /* invalidate buffer */
-
- if (zzReader != null)
- zzReader.close();
- }
-
-
- /**
- * Resets the scanner to read from a new input stream.
- * Does not close the old reader.
- *
- * All internal variables are reset, the old input stream
- * <b>cannot</b> be reused (internal buffer is discarded and lost).
- * Lexical state is set to <tt>ZZ_INITIAL</tt>.
- *
- * Internal scan buffer is resized down to its initial length, if it has grown.
- *
- * @param reader the new input stream
- */
- public final void yyreset(java.io.Reader reader) {
- zzReader = reader;
- zzAtBOL = true;
- zzAtEOF = false;
- zzEOFDone = false;
- zzEndRead = zzStartRead = 0;
- zzCurrentPos = zzMarkedPos = 0;
- zzFinalHighSurrogate = 0;
- yyline = yychar = yycolumn = 0;
- zzLexicalState = YYINITIAL;
- if (zzBuffer.length > ZZ_BUFFERSIZE)
- zzBuffer = new char[ZZ_BUFFERSIZE];
- }
-
-
- /**
- * Returns the current lexical state.
- */
- public final int yystate() {
- return zzLexicalState;
- }
-
-
- /**
- * Enters a new lexical state
- *
- * @param newState the new lexical state
- */
- public final void yybegin(int newState) {
- zzLexicalState = newState;
- }
-
-
- /**
- * Returns the text matched by the current regular expression.
- */
- public final String yytext() {
- return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );
- }
-
-
- /**
- * Returns the character at position <tt>pos</tt> from the
- * matched text.
- *
- * It is equivalent to yytext().charAt(pos), but faster
- *
- * @param pos the position of the character to fetch.
- * A value from 0 to yylength()-1.
- *
- * @return the character at position pos
- */
- public final char yycharat(int pos) {
- return zzBuffer[zzStartRead+pos];
- }
-
-
- /**
- * Returns the length of the matched text region.
- */
- public final int yylength() {
- return zzMarkedPos-zzStartRead;
- }
-
-
- /**
- * Reports an error that occurred while scanning.
- *
- * In a wellformed scanner (no or only correct usage of
- * yypushback(int) and a match-all fallback rule) this method
- * will only be called with things that "Can't Possibly Happen".
- * If this method is called, something is seriously wrong
- * (e.g. a JFlex bug producing a faulty scanner etc.).
- *
- * Usual syntax/scanner level error handling should be done
- * in error fallback rules.
- *
- * @param errorCode the code of the errormessage to display
- */
- private void zzScanError(int errorCode) {
- String message;
- try {
- message = ZZ_ERROR_MSG[errorCode];
- }
- catch (ArrayIndexOutOfBoundsException e) {
- message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
- }
-
- throw new Error(message);
- }
-
-
- /**
- * Pushes the specified amount of characters back into the input stream.
- *
- * They will be read again by then next call of the scanning method
- *
- * @param number the number of characters to be read again.
- * This number must not be greater than yylength()!
- */
- public void yypushback(int number) {
- if ( number > yylength() )
- zzScanError(ZZ_PUSHBACK_2BIG);
-
- zzMarkedPos -= number;
- }
-
-
- /**
- * Resumes scanning until the next regular expression is matched,
- * the end of input is encountered or an I/O-Error occurs.
- *
- * @return the next token
- * @exception java.io.IOException if any I/O-Error occurs
- */
- public int yylex() throws java.io.IOException {
- int zzInput;
- int zzAction;
-
- // cached fields:
- int zzCurrentPosL;
- int zzMarkedPosL;
- int zzEndReadL = zzEndRead;
- char [] zzBufferL = zzBuffer;
- char [] zzCMapL = ZZ_CMAP;
-
- int [] zzTransL = ZZ_TRANS;
- int [] zzRowMapL = ZZ_ROWMAP;
- int [] zzAttrL = ZZ_ATTRIBUTE;
-
- while (true) {
- zzMarkedPosL = zzMarkedPos;
-
- yychar+= zzMarkedPosL-zzStartRead;
-
- zzAction = -1;
-
- zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
-
- zzState = ZZ_LEXSTATE[zzLexicalState];
-
- // set up zzAction for empty match case:
- int zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- }
-
-
- zzForAction: {
- while (true) {
-
- if (zzCurrentPosL < zzEndReadL) {
- zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL);
- zzCurrentPosL += Character.charCount(zzInput);
- }
- else if (zzAtEOF) {
- zzInput = YYEOF;
- break zzForAction;
- }
- else {
- // store back cached positions
- zzCurrentPos = zzCurrentPosL;
- zzMarkedPos = zzMarkedPosL;
- boolean eof = zzRefill();
- // get translated positions and possibly new buffer
- zzCurrentPosL = zzCurrentPos;
- zzMarkedPosL = zzMarkedPos;
- zzBufferL = zzBuffer;
- zzEndReadL = zzEndRead;
- if (eof) {
- zzInput = YYEOF;
- break zzForAction;
- }
- else {
- zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL);
- zzCurrentPosL += Character.charCount(zzInput);
- }
- }
- int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
- if (zzNext == -1) break zzForAction;
- zzState = zzNext;
-
- zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- zzMarkedPosL = zzCurrentPosL;
- if ( (zzAttributes & 8) == 8 ) break zzForAction;
- }
-
- }
- }
-
- // store back cached position
- zzMarkedPos = zzMarkedPosL;
-
- if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
- zzAtEOF = true;
+\r
+\r
+ /**\r
+ * Creates a new scanner\r
+ *\r
+ * @param in the java.io.Reader to read input from.\r
+ */\r
+ public FunctionScanner(java.io.Reader in) {\r
+ this.zzReader = in;\r
+ }\r
+\r
+ /**\r
+ * Translates raw input code points to DFA table row\r
+ */\r
+ private static int zzCMap(int input) {\r
+ int offset = input & 255;\r
+ return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\r
+ }\r
+\r
+ /**\r
+ * Refills the input buffer.\r
+ *\r
+ * @return {@code false} iff there was new input.\r
+ * @exception java.io.IOException if any I/O-Error occurs\r
+ */\r
+ private boolean zzRefill() throws java.io.IOException {\r
+\r
+ /* first: make room (if you can) */\r
+ if (zzStartRead > 0) {\r
+ zzEndRead += zzFinalHighSurrogate;\r
+ zzFinalHighSurrogate = 0;\r
+ System.arraycopy(zzBuffer, zzStartRead,\r
+ zzBuffer, 0,\r
+ zzEndRead - zzStartRead);\r
+\r
+ /* translate stored positions */\r
+ zzEndRead -= zzStartRead;\r
+ zzCurrentPos -= zzStartRead;\r
+ zzMarkedPos -= zzStartRead;\r
+ zzStartRead = 0;\r
+ }\r
+\r
+ /* is the buffer big enough? */\r
+ if (zzCurrentPos >= zzBuffer.length - zzFinalHighSurrogate) {\r
+ /* if not: blow it up */\r
+ char newBuffer[] = new char[zzBuffer.length * 2];\r
+ System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);\r
+ zzBuffer = newBuffer;\r
+ zzEndRead += zzFinalHighSurrogate;\r
+ zzFinalHighSurrogate = 0;\r
+ }\r
+\r
+ /* fill the buffer with new input */\r
+ int requested = zzBuffer.length - zzEndRead;\r
+ int numRead = zzReader.read(zzBuffer, zzEndRead, requested);\r
+\r
+ /* not supposed to occur according to specification of java.io.Reader */\r
+ if (numRead == 0) {\r
+ throw new java.io.IOException(\r
+ "Reader returned 0 characters. See JFlex examples/zero-reader for a workaround.");\r
+ }\r
+ if (numRead > 0) {\r
+ zzEndRead += numRead;\r
+ if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) {\r
+ if (numRead == requested) { // We requested too few chars to encode a full Unicode character\r
+ --zzEndRead;\r
+ zzFinalHighSurrogate = 1;\r
+ } else { // There is room in the buffer for at least one more char\r
+ int c = zzReader.read(); // Expecting to read a paired low surrogate char\r
+ if (c == -1) {\r
+ return true;\r
+ } else {\r
+ zzBuffer[zzEndRead++] = (char)c;\r
+ }\r
+ }\r
+ }\r
+ /* potentially more input available */\r
+ return false;\r
+ }\r
+\r
+ /* numRead < 0 ==> end of stream */\r
+ return true;\r
+ }\r
+\r
+\r
+ /**\r
+ * Closes the input reader.\r
+ *\r
+ * @throws java.io.IOException if the reader could not be closed.\r
+ */\r
+ public final void yyclose() throws java.io.IOException {\r
+ zzAtEOF = true; // indicate end of file\r
+ zzEndRead = zzStartRead; // invalidate buffer\r
+\r
+ if (zzReader != null) {\r
+ zzReader.close();\r
+ }\r
+ }\r
+\r
+\r
+ /**\r
+ * Resets the scanner to read from a new input stream.\r
+ *\r
+ * <p>Does not close the old reader.\r
+ *\r
+ * <p>All internal variables are reset, the old input stream <b>cannot</b> be reused (internal\r
+ * buffer is discarded and lost). Lexical state is set to {@code ZZ_INITIAL}.\r
+ *\r
+ * <p>Internal scan buffer is resized down to its initial length, if it has grown.\r
+ *\r
+ * @param reader The new input stream.\r
+ */\r
+ public final void yyreset(java.io.Reader reader) {\r
+ zzReader = reader;\r
+ zzEOFDone = false;\r
+ yyResetPosition();\r
+ zzLexicalState = YYINITIAL;\r
+ if (zzBuffer.length > ZZ_BUFFERSIZE) {\r
+ zzBuffer = new char[ZZ_BUFFERSIZE];\r
+ }\r
+ }\r
+\r
+ /**\r
+ * Resets the input position.\r
+ */\r
+ private final void yyResetPosition() {\r
+ zzAtBOL = true;\r
+ zzAtEOF = false;\r
+ zzCurrentPos = 0;\r
+ zzMarkedPos = 0;\r
+ zzStartRead = 0;\r
+ zzEndRead = 0;\r
+ zzFinalHighSurrogate = 0;\r
+ yyline = 0;\r
+ yycolumn = 0;\r
+ yychar = 0L;\r
+ }\r
+\r
+\r
+ /**\r
+ * Returns whether the scanner has reached the end of the reader it reads from.\r
+ *\r
+ * @return whether the scanner has reached EOF.\r
+ */\r
+ public final boolean yyatEOF() {\r
+ return zzAtEOF;\r
+ }\r
+\r
+\r
+ /**\r
+ * Returns the current lexical state.\r
+ *\r
+ * @return the current lexical state.\r
+ */\r
+ public final int yystate() {\r
+ return zzLexicalState;\r
+ }\r
+\r
+\r
+ /**\r
+ * Enters a new lexical state.\r
+ *\r
+ * @param newState the new lexical state\r
+ */\r
+ public final void yybegin(int newState) {\r
+ zzLexicalState = newState;\r
+ }\r
+\r
+\r
+ /**\r
+ * Returns the text matched by the current regular expression.\r
+ *\r
+ * @return the matched text.\r
+ */\r
+ public final String yytext() {\r
+ return new String(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);\r
+ }\r
+\r
+\r
+ /**\r
+ * Returns the character at the given position from the matched text.\r
+ *\r
+ * <p>It is equivalent to {@code yytext().charAt(pos)}, but faster.\r
+ *\r
+ * @param position the position of the character to fetch. A value from 0 to {@code yylength()-1}.\r
+ *\r
+ * @return the character at {@code position}.\r
+ */\r
+ public final char yycharat(int position) {\r
+ return zzBuffer[zzStartRead + position];\r
+ }\r
+\r
+\r
+ /**\r
+ * How many characters were matched.\r
+ *\r
+ * @return the length of the matched text region.\r
+ */\r
+ public final int yylength() {\r
+ return zzMarkedPos-zzStartRead;\r
+ }\r
+\r
+\r
+ /**\r
+ * Reports an error that occurred while scanning.\r
+ *\r
+ * <p>In a well-formed scanner (no or only correct usage of {@code yypushback(int)} and a\r
+ * match-all fallback rule) this method will only be called with things that\r
+ * "Can't Possibly Happen".\r
+ *\r
+ * <p>If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty\r
+ * scanner etc.).\r
+ *\r
+ * <p>Usual syntax/scanner level error handling should be done in error fallback rules.\r
+ *\r
+ * @param errorCode the code of the error message to display.\r
+ */\r
+ private static void zzScanError(int errorCode) {\r
+ String message;\r
+ try {\r
+ message = ZZ_ERROR_MSG[errorCode];\r
+ } catch (ArrayIndexOutOfBoundsException e) {\r
+ message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r
+ }\r
+\r
+ throw new Error(message);\r
+ }\r
+\r
+\r
+ /**\r
+ * Pushes the specified amount of characters back into the input stream.\r
+ *\r
+ * <p>They will be read again by then next call of the scanning method.\r
+ *\r
+ * @param number the number of characters to be read again. This number must not be greater than\r
+ * {@link #yylength()}.\r
+ */\r
+ public void yypushback(int number) {\r
+ if ( number > yylength() )\r
+ zzScanError(ZZ_PUSHBACK_2BIG);\r
+\r
+ zzMarkedPos -= number;\r
+ }\r
+\r
+\r
+\r
+\r
+ /**\r
+ * Resumes scanning until the next regular expression is matched, the end of input is encountered\r
+ * or an I/O-Error occurs.\r
+ *\r
+ * @return the next token.\r
+ * @exception java.io.IOException if any I/O-Error occurs.\r
+ */\r
+ public int yylex() throws java.io.IOException {\r
+ int zzInput;\r
+ int zzAction;\r
+\r
+ // cached fields:\r
+ int zzCurrentPosL;\r
+ int zzMarkedPosL;\r
+ int zzEndReadL = zzEndRead;\r
+ char[] zzBufferL = zzBuffer;\r
+\r
+ int [] zzTransL = ZZ_TRANS;\r
+ int [] zzRowMapL = ZZ_ROWMAP;\r
+ int [] zzAttrL = ZZ_ATTRIBUTE;\r
+\r
+ while (true) {\r
+ zzMarkedPosL = zzMarkedPos;\r
+\r
+ yychar+= zzMarkedPosL-zzStartRead;\r
+\r
+ zzAction = -1;\r
+\r
+ zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;\r
+\r
+ zzState = ZZ_LEXSTATE[zzLexicalState];\r
+\r
+ // set up zzAction for empty match case:\r
+ int zzAttributes = zzAttrL[zzState];\r
+ if ( (zzAttributes & 1) == 1 ) {\r
+ zzAction = zzState;\r
+ }\r
+\r
+\r
+ zzForAction: {\r
+ while (true) {\r
+\r
+ if (zzCurrentPosL < zzEndReadL) {\r
+ zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL);\r
+ zzCurrentPosL += Character.charCount(zzInput);\r
+ }\r
+ else if (zzAtEOF) {\r
+ zzInput = YYEOF;\r
+ break zzForAction;\r
+ }\r
+ else {\r
+ // store back cached positions\r
+ zzCurrentPos = zzCurrentPosL;\r
+ zzMarkedPos = zzMarkedPosL;\r
+ boolean eof = zzRefill();\r
+ // get translated positions and possibly new buffer\r
+ zzCurrentPosL = zzCurrentPos;\r
+ zzMarkedPosL = zzMarkedPos;\r
+ zzBufferL = zzBuffer;\r
+ zzEndReadL = zzEndRead;\r
+ if (eof) {\r
+ zzInput = YYEOF;\r
+ break zzForAction;\r
+ }\r
+ else {\r
+ zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL);\r
+ zzCurrentPosL += Character.charCount(zzInput);\r
+ }\r
+ }\r
+ int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMap(zzInput) ];\r
+ if (zzNext == -1) break zzForAction;\r
+ zzState = zzNext;\r
+\r
+ zzAttributes = zzAttrL[zzState];\r
+ if ( (zzAttributes & 1) == 1 ) {\r
+ zzAction = zzState;\r
+ zzMarkedPosL = zzCurrentPosL;\r
+ if ( (zzAttributes & 8) == 8 ) break zzForAction;\r
+ }\r
+\r
+ }\r
+ }\r
+\r
+ // store back cached position\r
+ zzMarkedPos = zzMarkedPosL;\r
+\r
+ if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {\r
+ zzAtEOF = true;\r
{ return ScilabDocument.ScilabLeafElement.NOTHING;
- }
- }
- else {
- switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
- case 1:
- { return ScilabDocument.ScilabLeafElement.NOTHING;
- }
- case 19: break;
- case 2:
+ }\r
+ }\r
+ else {\r
+ switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {\r
+ case 1:\r
+ { return ScilabDocument.ScilabLeafElement.NOTHING;\r
+ }\r
+ // fall through\r
+ case 19: break;\r
+ case 2:\r
{ id = yytext();
- yybegin(TYPEID);
- }
- case 20: break;
- case 3:
- { yybegin(RETS);
- }
- case 21: break;
- case 4:
- {
- }
- case 22: break;
- case 5:
+ yybegin(TYPEID);\r
+ }\r
+ // fall through\r
+ case 20: break;\r
+ case 3:\r
+ { yybegin(RETS);\r
+ }\r
+ // fall through\r
+ case 21: break;\r
+ case 4:\r
+ { \r
+ }\r
+ // fall through\r
+ case 22: break;\r
+ case 5:\r
{ functionName = id;
- return ScilabDocument.ScilabLeafElement.FUN;
- }
- case 23: break;
- case 6:
- { returnValues.add(id);
- yybegin(FUNNAME);
- }
- case 24: break;
- case 7:
+ return ScilabDocument.ScilabLeafElement.FUN;\r
+ }\r
+ // fall through\r
+ case 23: break;\r
+ case 6:\r
{ functionName = id;
- yybegin(ARGS);
- }
- case 25: break;
- case 8:
- { return ScilabDocument.ScilabLeafElement.FUN;
- }
- case 26: break;
- case 9:
- { functionName = yytext();
- }
- case 27: break;
- case 10:
- { yybegin(ARGS);
- }
- case 28: break;
- case 11:
- { returnValues.add(yytext());
- }
- case 29: break;
- case 12:
- { argsValues.add(yytext());
- }
- case 30: break;
- case 13:
- { return 0;
- }
- case 31: break;
- case 14:
- { yybegin(FUNNAME);
- }
- case 32: break;
- case 15:
- { MatchingBlockScanner.MatchingPositions pos = matchBlock.getMatchingBlock(start + yychar + yylength(), false);
+ yybegin(ARGS);\r
+ }\r
+ // fall through\r
+ case 24: break;\r
+ case 7:\r
+ { returnValues.add(id);
+ yybegin(FUNNAME);\r
+ }\r
+ // fall through\r
+ case 25: break;\r
+ case 8:\r
+ { return ScilabDocument.ScilabLeafElement.FUN;\r
+ }\r
+ // fall through\r
+ case 26: break;\r
+ case 9:\r
+ { functionName = yytext();\r
+ }\r
+ // fall through\r
+ case 27: break;\r
+ case 10:\r
+ { yybegin(ARGS);\r
+ }\r
+ // fall through\r
+ case 28: break;\r
+ case 11:\r
+ { returnValues.add(yytext());\r
+ }\r
+ // fall through\r
+ case 29: break;\r
+ case 12:\r
+ { argsValues.add(yytext());\r
+ }\r
+ // fall through\r
+ case 30: break;\r
+ case 13:\r
+ { return 0;\r
+ }\r
+ // fall through\r
+ case 31: break;\r
+ case 14:\r
+ { yybegin(FUNNAME);\r
+ }\r
+ // fall through\r
+ case 32: break;\r
+ case 15:\r
+ { MatchingBlockScanner.MatchingPositions pos = matchBlock.getMatchingBlock(start + yychar() + yylength(), false);
if (pos != null) {
try {
String match = doc.getText(pos.secondB, pos.secondE - pos.secondB);
return ScilabDocument.ScilabLeafElement.ENDFUN;
}
} catch (BadLocationException e) { }
- }
- }
- case 33: break;
- case 16:
- { return ScilabDocument.ScilabLeafElement.BROKEN;
- }
- case 34: break;
- case 17:
- { yybegin(FUNCTION);
- }
- case 35: break;
- case 18:
- { return ScilabDocument.ScilabLeafElement.ENDFUN;
- }
- case 36: break;
- default:
- zzScanError(ZZ_NO_MATCH);
- }
- }
- }
- }
-
-
-}
+ }\r
+ }\r
+ // fall through\r
+ case 33: break;\r
+ case 16:\r
+ { return ScilabDocument.ScilabLeafElement.BROKEN;\r
+ }\r
+ // fall through\r
+ case 34: break;\r
+ case 17:\r
+ { yybegin(FUNCTION);\r
+ }\r
+ // fall through\r
+ case 35: break;\r
+ case 18:\r
+ { return ScilabDocument.ScilabLeafElement.ENDFUN;\r
+ }\r
+ // fall through\r
+ case 36: break;\r
+ default:\r
+ zzScanError(ZZ_NO_MATCH);\r
+ }\r
+ }\r
+ }\r
+ }\r
+\r
+\r
+}\r