position
- * of string s.
+ * Extract a hexadecimal digit from position position of string
+ * s.
*/
static int getHexDigit(String s, int position) {
int value = Character.digit(s.charAt(position), 16);
@@ -1567,8 +1563,8 @@ class FDBigInt {
} else {
return 1; // b not big, answer is obvious;
}
- } else {
- // a is not really big
+ } else // a is not really big
+ {
if (b < 0) {
// but b is really big
return -1;
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/ShapeExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/ShapeExporter.java
index 1f7e90540..277ff7f0d 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/ShapeExporter.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/ShapeExporter.java
@@ -63,7 +63,7 @@ public class ShapeExporter {
return ret;
}
- File foutdir = new File(outdir);
+ File foutdir = new File(outdir);
Path.createDirectorySafe(foutdir);
int count = 0;
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/BMPFile.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/BMPFile.java
index 3528b9931..10a7d8e32 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/BMPFile.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/BMPFile.java
@@ -92,6 +92,7 @@ public class BMPFile extends Component {
b.save(image, image.getWidth(null), image.getHeight(null));
}
}
+
/*
* The saveMethod is the main method of the process. This method
* will call the convertImage method to convert the memory image to
@@ -100,7 +101,6 @@ public class BMPFile extends Component {
* information header; and writeBitmap writes the image.
*
*/
-
private void save(Image parImage, int parWidth, int parHeight) throws IOException {
convertImage(parImage, parWidth, parHeight);
writeBitmapFileHeader();
@@ -108,12 +108,12 @@ public class BMPFile extends Component {
writeBitmap();
}
+
/*
* convertImage converts the memory image to the bitmap format (BRG).
* It also computes some information for the bitmap info header.
*
*/
-
private boolean convertImage(Image parImage, int parWidth, int parHeight) {
int pad;
bitmap = new int[parWidth * parHeight];
@@ -133,6 +133,7 @@ public class BMPFile extends Component {
biHeight = parHeight;
return (true);
}
+
/*
* writeBitmap converts the image returned from the pixel grabber to
* the format required. Remember: scan lines are inverted in
@@ -140,7 +141,6 @@ public class BMPFile extends Component {
*
* Each scan line must be padded to an even 4-byte boundary.
*/
-
private void writeBitmap() throws IOException {
byte[] rgb = new byte[3];
int width = biWidth;
@@ -165,11 +165,11 @@ public class BMPFile extends Component {
bfSize += padCount;
biSizeImage += padCount;
}
+
/*
* writeBitmapFileHeader writes the bitmap file header to the file.
*
*/
-
private void writeBitmapFileHeader() throws IOException {
fo.write(bfType);
@@ -178,13 +178,13 @@ public class BMPFile extends Component {
fo.write(intToWord(bfReserved2));
fo.write(intToDWord(bfOffBits));
}
+
/*
*
* writeBitmapInfoHeader writes the bitmap information header
* to the file.
*
*/
-
private void writeBitmapInfoHeader() throws IOException {
fo.write(intToDWord(biSize));
@@ -200,26 +200,26 @@ public class BMPFile extends Component {
fo.write(intToDWord(biClrImportant));
}
+
/*
*
* intToWord converts an int to a word, where the return
* value is stored in a 2-byte array.
*
*/
-
private byte[] intToWord(int parValue) {
byte[] retValue = new byte[2];
retValue[0] = (byte) (parValue & 0x00FF);
retValue[1] = (byte) ((parValue >> 8) & 0x00FF);
return (retValue);
}
+
/*
*
* intToDWord converts an int to a double word, where the return
* value is stored in a 4-byte array.
*
*/
-
private byte[] intToDWord(int parValue) {
byte[] retValue = new byte[4];
retValue[0] = (byte) (parValue & 0x00FF);
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/GraphTextWriter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/GraphTextWriter.java
index 65db3bcb0..14fc85280 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/GraphTextWriter.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/GraphTextWriter.java
@@ -243,10 +243,8 @@ public abstract class GraphTextWriter {
if (formatting.spaceBeforeParenthesesMethodCallParentheses) {
space();
}
- } else {
- if (formatting.spaceBeforeParenthesesMethodCallEmptyParentheses) {
- space();
- }
+ } else if (formatting.spaceBeforeParenthesesMethodCallEmptyParentheses) {
+ space();
}
return this;
}
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/ImageHelper.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/ImageHelper.java
index c368ac4cb..49018fd4f 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/ImageHelper.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/ImageHelper.java
@@ -103,19 +103,17 @@ public class ImageHelper {
String formatName = getImageFormatString(format).toUpperCase(Locale.ENGLISH);
if (format == ImageFormat.JPEG) {
image = fixImageIOJpegBug(image);
- } else {
- if (image.getType() == BufferedImage.TYPE_INT_ARGB_PRE) {
- BufferedImage image2 = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB);
- int[] pixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();
- divideAlpha(pixels);
+ } else if (image.getType() == BufferedImage.TYPE_INT_ARGB_PRE) {
+ BufferedImage image2 = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB);
+ int[] pixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();
+ divideAlpha(pixels);
- int[] pixels2 = ((DataBufferInt) image2.getRaster().getDataBuffer()).getData();
- for (int i = 0; i < pixels.length; i++) {
- pixels2[i] = pixels[i];
- }
-
- image = image2;
+ int[] pixels2 = ((DataBufferInt) image2.getRaster().getDataBuffer()).getData();
+ for (int i = 0; i < pixels.length; i++) {
+ pixels2[i] = pixels[i];
}
+
+ image = image2;
}
try {
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/TextImporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/TextImporter.java
index e45163425..e92169492 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/TextImporter.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/TextImporter.java
@@ -60,10 +60,8 @@ public class TextImporter {
int id = Integer.parseInt(idLine.substring(3).trim());
String[] records = textArr[1].split(recordSeparator);
result.put(id, records);
- } else {
- if (errorHandler.handle(null)) {
- return null;
- }
+ } else if (errorHandler.handle(null)) {
+ return null;
}
}
return result;
@@ -142,11 +140,9 @@ public class TextImporter {
return false;
}
}
- } else {
- if (textTag != null) {
- if (!saveText(textTag, newText, null)) {
- return false;
- }
+ } else if (textTag != null) {
+ if (!saveText(textTag, newText, null)) {
+ return false;
}
}
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/amf/amf3/Amf3Lexer.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/amf/amf3/Amf3Lexer.java
index 7052c61ef..e8d559a27 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/amf/amf3/Amf3Lexer.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/amf/amf3/Amf3Lexer.java
@@ -1,6 +1,6 @@
/* The following code was generated by JFlex 1.6.0 */
-/*
+ /*
* Copyright (C) 2010-2016 JPEXS, All rights reserved.
*
* This library is free software; you can redistribute it and/or
@@ -17,517 +17,558 @@
* License along with this library.
*/
package com.jpexs.decompiler.flash.importers.amf.amf3;
+
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
-
/**
- * This class is a scanner generated by
- * JFlex 1.6.0
- * from the specification file D:/Dropbox/Programovani/JavaSE/FFDec/libsrc/ffdec_lib/lexers/amf3.flex
+ * This class is a scanner generated by
+ * JFlex 1.6.0 from the specification file
+ * D:/Dropbox/Programovani/JavaSE/FFDec/libsrc/ffdec_lib/lexers/amf3.flex
*/
public final class Amf3Lexer {
- /** This character denotes the end of file */
- public static final int YYEOF = -1;
+ /**
+ * 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;
+ /**
+ * 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 STRING = 2;
- public static final int CHARLITERAL = 4;
+ /**
+ * lexical states
+ */
+ public static final int YYINITIAL = 0;
+ public static final int STRING = 2;
+ public static final int CHARLITERAL = 4;
- /**
- * 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
- };
+ /**
+ * 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
+ };
- /**
- * Translates characters to character classes
- */
- private static final String ZZ_CMAP_PACKED =
- "\11\7\1\3\1\2\1\54\1\55\1\1\16\7\4\0\1\3\1\0"+
- "\1\50\1\10\1\6\2\0\1\52\2\0\1\5\1\22\1\46\1\12"+
- "\1\20\1\4\1\11\3\16\4\17\2\13\1\47\6\0\4\15\1\21"+
- "\1\15\21\6\1\14\2\6\1\44\1\23\1\45\1\0\1\6\1\0"+
- "\1\33\1\51\1\15\1\27\1\30\1\31\2\6\1\32\1\6\1\37"+
- "\1\26\1\6\1\24\1\40\2\6\1\36\1\34\1\35\1\25\1\6"+
- "\1\41\1\53\2\6\1\42\1\0\1\43\1\0\6\7\1\56\32\7"+
- "\2\0\4\6\4\0\1\6\2\0\1\7\7\0\1\6\4\0\1\6"+
- "\5\0\27\6\1\0\37\6\1\0\u01ca\6\4\0\14\6\16\0\5\6"+
- "\7\0\1\6\1\0\1\6\21\0\160\7\5\6\1\0\2\6\2\0"+
- "\4\6\10\0\1\6\1\0\3\6\1\0\1\6\1\0\24\6\1\0"+
- "\123\6\1\0\213\6\1\0\5\7\2\0\236\6\11\0\46\6\2\0"+
- "\1\6\7\0\47\6\7\0\1\6\1\0\55\7\1\0\1\7\1\0"+
- "\2\7\1\0\2\7\1\0\1\7\10\0\33\6\5\0\3\6\15\0"+
- "\5\7\6\0\1\6\4\0\13\7\5\0\53\6\37\7\4\0\2\6"+
- "\1\7\143\6\1\0\1\6\10\7\1\0\6\7\2\6\2\7\1\0"+
- "\4\7\2\6\12\7\3\6\2\0\1\6\17\0\1\7\1\6\1\7"+
- "\36\6\33\7\2\0\131\6\13\7\1\6\16\0\12\7\41\6\11\7"+
- "\2\6\4\0\1\6\5\0\26\6\4\7\1\6\11\7\1\6\3\7"+
- "\1\6\5\7\22\0\31\6\3\7\104\0\1\6\1\0\13\6\67\0"+
- "\33\7\1\0\4\7\66\6\3\7\1\6\22\7\1\6\7\7\12\6"+
- "\2\7\2\0\12\7\1\0\7\6\1\0\7\6\1\0\3\7\1\0"+
- "\10\6\2\0\2\6\2\0\26\6\1\0\7\6\1\0\1\6\3\0"+
- "\4\6\2\0\1\7\1\6\7\7\2\0\2\7\2\0\3\7\1\6"+
- "\10\0\1\7\4\0\2\6\1\0\3\6\2\7\2\0\12\7\4\6"+
- "\7\0\1\6\5\0\3\7\1\0\6\6\4\0\2\6\2\0\26\6"+
- "\1\0\7\6\1\0\2\6\1\0\2\6\1\0\2\6\2\0\1\7"+
- "\1\0\5\7\4\0\2\7\2\0\3\7\3\0\1\7\7\0\4\6"+
- "\1\0\1\6\7\0\14\7\3\6\1\7\13\0\3\7\1\0\11\6"+
- "\1\0\3\6\1\0\26\6\1\0\7\6\1\0\2\6\1\0\5\6"+
- "\2\0\1\7\1\6\10\7\1\0\3\7\1\0\3\7\2\0\1\6"+
- "\17\0\2\6\2\7\2\0\12\7\1\0\1\6\17\0\3\7\1\0"+
- "\10\6\2\0\2\6\2\0\26\6\1\0\7\6\1\0\2\6\1\0"+
- "\5\6\2\0\1\7\1\6\7\7\2\0\2\7\2\0\3\7\10\0"+
- "\2\7\4\0\2\6\1\0\3\6\2\7\2\0\12\7\1\0\1\6"+
- "\20\0\1\7\1\6\1\0\6\6\3\0\3\6\1\0\4\6\3\0"+
- "\2\6\1\0\1\6\1\0\2\6\3\0\2\6\3\0\3\6\3\0"+
- "\14\6\4\0\5\7\3\0\3\7\1\0\4\7\2\0\1\6\6\0"+
- "\1\7\16\0\12\7\11\0\1\6\7\0\3\7\1\0\10\6\1\0"+
- "\3\6\1\0\27\6\1\0\12\6\1\0\5\6\3\0\1\6\7\7"+
- "\1\0\3\7\1\0\4\7\7\0\2\7\1\0\2\6\6\0\2\6"+
- "\2\7\2\0\12\7\22\0\2\7\1\0\10\6\1\0\3\6\1\0"+
- "\27\6\1\0\12\6\1\0\5\6\2\0\1\7\1\6\7\7\1\0"+
- "\3\7\1\0\4\7\7\0\2\7\7\0\1\6\1\0\2\6\2\7"+
- "\2\0\12\7\1\0\2\6\17\0\2\7\1\0\10\6\1\0\3\6"+
- "\1\0\51\6\2\0\1\6\7\7\1\0\3\7\1\0\4\7\1\6"+
- "\10\0\1\7\10\0\2\6\2\7\2\0\12\7\12\0\6\6\2\0"+
- "\2\7\1\0\22\6\3\0\30\6\1\0\11\6\1\0\1\6\2\0"+
- "\7\6\3\0\1\7\4\0\6\7\1\0\1\7\1\0\10\7\22\0"+
- "\2\7\15\0\60\6\1\7\2\6\7\7\4\0\10\6\10\7\1\0"+
- "\12\7\47\0\2\6\1\0\1\6\2\0\2\6\1\0\1\6\2\0"+
- "\1\6\6\0\4\6\1\0\7\6\1\0\3\6\1\0\1\6\1\0"+
- "\1\6\2\0\2\6\1\0\4\6\1\7\2\6\6\7\1\0\2\7"+
- "\1\6\2\0\5\6\1\0\1\6\1\0\6\7\2\0\12\7\2\0"+
- "\4\6\40\0\1\6\27\0\2\7\6\0\12\7\13\0\1\7\1\0"+
- "\1\7\1\0\1\7\4\0\2\7\10\6\1\0\44\6\4\0\24\7"+
- "\1\0\2\7\5\6\13\7\1\0\44\7\11\0\1\7\71\0\53\6"+
- "\24\7\1\6\12\7\6\0\6\6\4\7\4\6\3\7\1\6\3\7"+
- "\2\6\7\7\3\6\4\7\15\6\14\7\1\6\17\7\2\0\46\6"+
- "\1\0\1\6\5\0\1\6\2\0\53\6\1\0\u014d\6\1\0\4\6"+
- "\2\0\7\6\1\0\1\6\1\0\4\6\2\0\51\6\1\0\4\6"+
- "\2\0\41\6\1\0\4\6\2\0\7\6\1\0\1\6\1\0\4\6"+
- "\2\0\17\6\1\0\71\6\1\0\4\6\2\0\103\6\2\0\3\7"+
- "\40\0\20\6\20\0\125\6\14\0\u026c\6\2\0\21\6\1\0\32\6"+
- "\5\0\113\6\3\0\3\6\17\0\15\6\1\0\4\6\3\7\13\0"+
- "\22\6\3\7\13\0\22\6\2\7\14\0\15\6\1\0\3\6\1\0"+
- "\2\7\14\0\64\6\40\7\3\0\1\6\3\0\2\6\1\7\2\0"+
- "\12\7\41\0\3\7\2\0\12\7\6\0\130\6\10\0\51\6\1\7"+
- "\1\6\5\0\106\6\12\0\35\6\3\0\14\7\4\0\14\7\12\0"+
- "\12\7\36\6\2\0\5\6\13\0\54\6\4\0\21\7\7\6\2\7"+
- "\6\0\12\7\46\0\27\6\5\7\4\0\65\6\12\7\1\0\35\7"+
- "\2\0\13\7\6\0\12\7\15\0\1\6\130\0\5\7\57\6\21\7"+
- "\7\6\4\0\12\7\21\0\11\7\14\0\3\7\36\6\15\7\2\6"+
- "\12\7\54\6\16\7\14\0\44\6\24\7\10\0\12\7\3\0\3\6"+
- "\12\7\44\6\122\0\3\7\1\0\25\7\4\6\1\7\4\6\3\7"+
- "\2\6\11\0\300\6\47\7\25\0\4\7\u0116\6\2\0\6\6\2\0"+
- "\46\6\2\0\6\6\2\0\10\6\1\0\1\6\1\0\1\6\1\0"+
- "\1\6\1\0\37\6\2\0\65\6\1\0\7\6\1\0\1\6\3\0"+
- "\3\6\1\0\7\6\3\0\4\6\2\0\6\6\4\0\15\6\5\0"+
- "\3\6\1\0\7\6\16\0\5\7\30\0\1\54\1\54\5\7\20\0"+
- "\2\6\23\0\1\6\13\0\5\7\5\0\6\7\1\0\1\6\15\0"+
- "\1\6\20\0\15\6\3\0\33\6\25\0\15\7\4\0\1\7\3\0"+
- "\14\7\21\0\1\6\4\0\1\6\2\0\12\6\1\0\1\6\3\0"+
- "\5\6\6\0\1\6\1\0\1\6\1\0\1\6\1\0\4\6\1\0"+
- "\13\6\2\0\4\6\5\0\5\6\4\0\1\6\21\0\51\6\u0a77\0"+
- "\57\6\1\0\57\6\1\0\205\6\6\0\4\6\3\7\2\6\14\0"+
- "\46\6\1\0\1\6\5\0\1\6\2\0\70\6\7\0\1\6\17\0"+
- "\1\7\27\6\11\0\7\6\1\0\7\6\1\0\7\6\1\0\7\6"+
- "\1\0\7\6\1\0\7\6\1\0\7\6\1\0\7\6\1\0\40\7"+
- "\57\0\1\6\u01d5\0\3\6\31\0\11\6\6\7\1\0\5\6\2\0"+
- "\5\6\4\0\126\6\2\0\2\7\2\0\3\6\1\0\132\6\1\0"+
- "\4\6\5\0\51\6\3\0\136\6\21\0\33\6\65\0\20\6\u0200\0"+
- "\u19b6\6\112\0\u51cd\6\63\0\u048d\6\103\0\56\6\2\0\u010d\6\3\0"+
- "\20\6\12\7\2\6\24\0\57\6\1\7\4\0\12\7\1\0\31\6"+
- "\7\0\1\7\120\6\2\7\45\0\11\6\2\0\147\6\2\0\4\6"+
- "\1\0\4\6\14\0\13\6\115\0\12\6\1\7\3\6\1\7\4\6"+
- "\1\7\27\6\5\7\20\0\1\6\7\0\64\6\14\0\2\7\62\6"+
- "\21\7\13\0\12\7\6\0\22\7\6\6\3\0\1\6\4\0\12\7"+
- "\34\6\10\7\2\0\27\6\15\7\14\0\35\6\3\0\4\7\57\6"+
- "\16\7\16\0\1\6\12\7\46\0\51\6\16\7\11\0\3\6\1\7"+
- "\10\6\2\7\2\0\12\7\6\0\27\6\3\0\1\6\1\7\4\0"+
- "\60\6\1\7\1\6\3\7\2\6\2\7\5\6\2\7\1\6\1\7"+
- "\1\6\30\0\3\6\2\0\13\6\5\7\2\0\3\6\2\7\12\0"+
- "\6\6\2\0\6\6\2\0\6\6\11\0\7\6\1\0\7\6\221\0"+
- "\43\6\10\7\1\0\2\7\2\0\12\7\6\0\u2ba4\6\14\0\27\6"+
- "\4\0\61\6\u2104\0\u016e\6\2\0\152\6\46\0\7\6\14\0\5\6"+
- "\5\0\1\6\1\7\12\6\1\0\15\6\1\0\5\6\1\0\1\6"+
- "\1\0\2\6\1\0\2\6\1\0\154\6\41\0\u016b\6\22\0\100\6"+
- "\2\0\66\6\50\0\15\6\3\0\20\7\20\0\7\7\14\0\2\6"+
- "\30\0\3\6\31\0\1\6\6\0\5\6\1\0\207\6\2\0\1\7"+
- "\4\0\1\6\13\0\12\7\7\0\32\6\4\0\1\6\1\0\32\6"+
- "\13\0\131\6\3\0\6\6\2\0\6\6\2\0\6\6\2\0\3\6"+
- "\3\0\2\6\3\0\2\6\22\0\3\7\4\0\14\6\1\0\32\6"+
- "\1\0\23\6\1\0\2\6\1\0\17\6\2\0\16\6\42\0\173\6"+
- "\105\0\65\6\210\0\1\7\202\0\35\6\3\0\61\6\57\0\37\6"+
- "\21\0\33\6\65\0\36\6\2\0\44\6\4\0\10\6\1\0\5\6"+
- "\52\0\236\6\2\0\12\7\u0356\0\6\6\2\0\1\6\1\0\54\6"+
- "\1\0\2\6\3\0\1\6\2\0\27\6\252\0\26\6\12\0\32\6"+
- "\106\0\70\6\6\0\2\6\100\0\1\6\3\7\1\0\2\7\5\0"+
- "\4\7\4\6\1\0\3\6\1\0\33\6\4\0\3\7\4\0\1\7"+
- "\40\0\35\6\203\0\66\6\12\0\26\6\12\0\23\6\215\0\111\6"+
- "\u03b7\0\3\7\65\6\17\7\37\0\12\7\20\0\3\7\55\6\13\7"+
- "\2\0\1\7\22\0\31\6\7\0\12\7\6\0\3\7\44\6\16\7"+
- "\1\0\12\7\100\0\3\7\60\6\16\7\4\6\13\0\12\7\u04a6\0"+
- "\53\6\15\7\10\0\12\7\u0936\0\u036f\6\221\0\143\6\u0b9d\0\u042f\6"+
- "\u33d1\0\u0239\6\u04c7\0\105\6\13\0\1\6\56\7\20\0\4\7\15\6"+
- "\u4060\0\2\6\u2163\0\5\7\3\0\26\7\2\0\7\7\36\0\4\7"+
- "\224\0\3\7\u01bb\0\125\6\1\0\107\6\1\0\2\6\2\0\1\6"+
- "\2\0\2\6\2\0\4\6\1\0\14\6\1\0\1\6\1\0\7\6"+
- "\1\0\101\6\1\0\4\6\2\0\10\6\1\0\7\6\1\0\34\6"+
- "\1\0\4\6\1\0\5\6\1\0\1\6\3\0\7\6\1\0\u0154\6"+
- "\2\0\31\6\1\0\31\6\1\0\37\6\1\0\31\6\1\0\37\6"+
- "\1\0\31\6\1\0\37\6\1\0\31\6\1\0\37\6\1\0\31\6"+
- "\1\0\10\6\2\0\62\7\u1600\0\4\6\1\0\33\6\1\0\2\6"+
- "\1\0\1\6\2\0\1\6\1\0\12\6\1\0\4\6\1\0\1\6"+
- "\1\0\1\6\6\0\1\6\4\0\1\6\1\0\1\6\1\0\1\6"+
- "\1\0\3\6\1\0\2\6\1\0\1\6\2\0\1\6\1\0\1\6"+
- "\1\0\1\6\1\0\1\6\1\0\1\6\1\0\2\6\1\0\1\6"+
- "\2\0\4\6\1\0\7\6\1\0\4\6\1\0\4\6\1\0\1\6"+
- "\1\0\12\6\1\0\21\6\5\0\3\6\1\0\5\6\1\0\21\6"+
- "\u1144\0\ua6d7\6\51\0\u1035\6\13\0\336\6\u3fe2\0\u021e\6\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\u05ee\0"+
- "\1\7\36\0\140\7\200\0\360\7\uffff\0\uffff\0\ufe12\0";
+ /**
+ * Translates characters to character classes
+ */
+ private static final String ZZ_CMAP_PACKED
+ = "\11\7\1\3\1\2\1\54\1\55\1\1\16\7\4\0\1\3\1\0"
+ + "\1\50\1\10\1\6\2\0\1\52\2\0\1\5\1\22\1\46\1\12"
+ + "\1\20\1\4\1\11\3\16\4\17\2\13\1\47\6\0\4\15\1\21"
+ + "\1\15\21\6\1\14\2\6\1\44\1\23\1\45\1\0\1\6\1\0"
+ + "\1\33\1\51\1\15\1\27\1\30\1\31\2\6\1\32\1\6\1\37"
+ + "\1\26\1\6\1\24\1\40\2\6\1\36\1\34\1\35\1\25\1\6"
+ + "\1\41\1\53\2\6\1\42\1\0\1\43\1\0\6\7\1\56\32\7"
+ + "\2\0\4\6\4\0\1\6\2\0\1\7\7\0\1\6\4\0\1\6"
+ + "\5\0\27\6\1\0\37\6\1\0\u01ca\6\4\0\14\6\16\0\5\6"
+ + "\7\0\1\6\1\0\1\6\21\0\160\7\5\6\1\0\2\6\2\0"
+ + "\4\6\10\0\1\6\1\0\3\6\1\0\1\6\1\0\24\6\1\0"
+ + "\123\6\1\0\213\6\1\0\5\7\2\0\236\6\11\0\46\6\2\0"
+ + "\1\6\7\0\47\6\7\0\1\6\1\0\55\7\1\0\1\7\1\0"
+ + "\2\7\1\0\2\7\1\0\1\7\10\0\33\6\5\0\3\6\15\0"
+ + "\5\7\6\0\1\6\4\0\13\7\5\0\53\6\37\7\4\0\2\6"
+ + "\1\7\143\6\1\0\1\6\10\7\1\0\6\7\2\6\2\7\1\0"
+ + "\4\7\2\6\12\7\3\6\2\0\1\6\17\0\1\7\1\6\1\7"
+ + "\36\6\33\7\2\0\131\6\13\7\1\6\16\0\12\7\41\6\11\7"
+ + "\2\6\4\0\1\6\5\0\26\6\4\7\1\6\11\7\1\6\3\7"
+ + "\1\6\5\7\22\0\31\6\3\7\104\0\1\6\1\0\13\6\67\0"
+ + "\33\7\1\0\4\7\66\6\3\7\1\6\22\7\1\6\7\7\12\6"
+ + "\2\7\2\0\12\7\1\0\7\6\1\0\7\6\1\0\3\7\1\0"
+ + "\10\6\2\0\2\6\2\0\26\6\1\0\7\6\1\0\1\6\3\0"
+ + "\4\6\2\0\1\7\1\6\7\7\2\0\2\7\2\0\3\7\1\6"
+ + "\10\0\1\7\4\0\2\6\1\0\3\6\2\7\2\0\12\7\4\6"
+ + "\7\0\1\6\5\0\3\7\1\0\6\6\4\0\2\6\2\0\26\6"
+ + "\1\0\7\6\1\0\2\6\1\0\2\6\1\0\2\6\2\0\1\7"
+ + "\1\0\5\7\4\0\2\7\2\0\3\7\3\0\1\7\7\0\4\6"
+ + "\1\0\1\6\7\0\14\7\3\6\1\7\13\0\3\7\1\0\11\6"
+ + "\1\0\3\6\1\0\26\6\1\0\7\6\1\0\2\6\1\0\5\6"
+ + "\2\0\1\7\1\6\10\7\1\0\3\7\1\0\3\7\2\0\1\6"
+ + "\17\0\2\6\2\7\2\0\12\7\1\0\1\6\17\0\3\7\1\0"
+ + "\10\6\2\0\2\6\2\0\26\6\1\0\7\6\1\0\2\6\1\0"
+ + "\5\6\2\0\1\7\1\6\7\7\2\0\2\7\2\0\3\7\10\0"
+ + "\2\7\4\0\2\6\1\0\3\6\2\7\2\0\12\7\1\0\1\6"
+ + "\20\0\1\7\1\6\1\0\6\6\3\0\3\6\1\0\4\6\3\0"
+ + "\2\6\1\0\1\6\1\0\2\6\3\0\2\6\3\0\3\6\3\0"
+ + "\14\6\4\0\5\7\3\0\3\7\1\0\4\7\2\0\1\6\6\0"
+ + "\1\7\16\0\12\7\11\0\1\6\7\0\3\7\1\0\10\6\1\0"
+ + "\3\6\1\0\27\6\1\0\12\6\1\0\5\6\3\0\1\6\7\7"
+ + "\1\0\3\7\1\0\4\7\7\0\2\7\1\0\2\6\6\0\2\6"
+ + "\2\7\2\0\12\7\22\0\2\7\1\0\10\6\1\0\3\6\1\0"
+ + "\27\6\1\0\12\6\1\0\5\6\2\0\1\7\1\6\7\7\1\0"
+ + "\3\7\1\0\4\7\7\0\2\7\7\0\1\6\1\0\2\6\2\7"
+ + "\2\0\12\7\1\0\2\6\17\0\2\7\1\0\10\6\1\0\3\6"
+ + "\1\0\51\6\2\0\1\6\7\7\1\0\3\7\1\0\4\7\1\6"
+ + "\10\0\1\7\10\0\2\6\2\7\2\0\12\7\12\0\6\6\2\0"
+ + "\2\7\1\0\22\6\3\0\30\6\1\0\11\6\1\0\1\6\2\0"
+ + "\7\6\3\0\1\7\4\0\6\7\1\0\1\7\1\0\10\7\22\0"
+ + "\2\7\15\0\60\6\1\7\2\6\7\7\4\0\10\6\10\7\1\0"
+ + "\12\7\47\0\2\6\1\0\1\6\2\0\2\6\1\0\1\6\2\0"
+ + "\1\6\6\0\4\6\1\0\7\6\1\0\3\6\1\0\1\6\1\0"
+ + "\1\6\2\0\2\6\1\0\4\6\1\7\2\6\6\7\1\0\2\7"
+ + "\1\6\2\0\5\6\1\0\1\6\1\0\6\7\2\0\12\7\2\0"
+ + "\4\6\40\0\1\6\27\0\2\7\6\0\12\7\13\0\1\7\1\0"
+ + "\1\7\1\0\1\7\4\0\2\7\10\6\1\0\44\6\4\0\24\7"
+ + "\1\0\2\7\5\6\13\7\1\0\44\7\11\0\1\7\71\0\53\6"
+ + "\24\7\1\6\12\7\6\0\6\6\4\7\4\6\3\7\1\6\3\7"
+ + "\2\6\7\7\3\6\4\7\15\6\14\7\1\6\17\7\2\0\46\6"
+ + "\1\0\1\6\5\0\1\6\2\0\53\6\1\0\u014d\6\1\0\4\6"
+ + "\2\0\7\6\1\0\1\6\1\0\4\6\2\0\51\6\1\0\4\6"
+ + "\2\0\41\6\1\0\4\6\2\0\7\6\1\0\1\6\1\0\4\6"
+ + "\2\0\17\6\1\0\71\6\1\0\4\6\2\0\103\6\2\0\3\7"
+ + "\40\0\20\6\20\0\125\6\14\0\u026c\6\2\0\21\6\1\0\32\6"
+ + "\5\0\113\6\3\0\3\6\17\0\15\6\1\0\4\6\3\7\13\0"
+ + "\22\6\3\7\13\0\22\6\2\7\14\0\15\6\1\0\3\6\1\0"
+ + "\2\7\14\0\64\6\40\7\3\0\1\6\3\0\2\6\1\7\2\0"
+ + "\12\7\41\0\3\7\2\0\12\7\6\0\130\6\10\0\51\6\1\7"
+ + "\1\6\5\0\106\6\12\0\35\6\3\0\14\7\4\0\14\7\12\0"
+ + "\12\7\36\6\2\0\5\6\13\0\54\6\4\0\21\7\7\6\2\7"
+ + "\6\0\12\7\46\0\27\6\5\7\4\0\65\6\12\7\1\0\35\7"
+ + "\2\0\13\7\6\0\12\7\15\0\1\6\130\0\5\7\57\6\21\7"
+ + "\7\6\4\0\12\7\21\0\11\7\14\0\3\7\36\6\15\7\2\6"
+ + "\12\7\54\6\16\7\14\0\44\6\24\7\10\0\12\7\3\0\3\6"
+ + "\12\7\44\6\122\0\3\7\1\0\25\7\4\6\1\7\4\6\3\7"
+ + "\2\6\11\0\300\6\47\7\25\0\4\7\u0116\6\2\0\6\6\2\0"
+ + "\46\6\2\0\6\6\2\0\10\6\1\0\1\6\1\0\1\6\1\0"
+ + "\1\6\1\0\37\6\2\0\65\6\1\0\7\6\1\0\1\6\3\0"
+ + "\3\6\1\0\7\6\3\0\4\6\2\0\6\6\4\0\15\6\5\0"
+ + "\3\6\1\0\7\6\16\0\5\7\30\0\1\54\1\54\5\7\20\0"
+ + "\2\6\23\0\1\6\13\0\5\7\5\0\6\7\1\0\1\6\15\0"
+ + "\1\6\20\0\15\6\3\0\33\6\25\0\15\7\4\0\1\7\3\0"
+ + "\14\7\21\0\1\6\4\0\1\6\2\0\12\6\1\0\1\6\3\0"
+ + "\5\6\6\0\1\6\1\0\1\6\1\0\1\6\1\0\4\6\1\0"
+ + "\13\6\2\0\4\6\5\0\5\6\4\0\1\6\21\0\51\6\u0a77\0"
+ + "\57\6\1\0\57\6\1\0\205\6\6\0\4\6\3\7\2\6\14\0"
+ + "\46\6\1\0\1\6\5\0\1\6\2\0\70\6\7\0\1\6\17\0"
+ + "\1\7\27\6\11\0\7\6\1\0\7\6\1\0\7\6\1\0\7\6"
+ + "\1\0\7\6\1\0\7\6\1\0\7\6\1\0\7\6\1\0\40\7"
+ + "\57\0\1\6\u01d5\0\3\6\31\0\11\6\6\7\1\0\5\6\2\0"
+ + "\5\6\4\0\126\6\2\0\2\7\2\0\3\6\1\0\132\6\1\0"
+ + "\4\6\5\0\51\6\3\0\136\6\21\0\33\6\65\0\20\6\u0200\0"
+ + "\u19b6\6\112\0\u51cd\6\63\0\u048d\6\103\0\56\6\2\0\u010d\6\3\0"
+ + "\20\6\12\7\2\6\24\0\57\6\1\7\4\0\12\7\1\0\31\6"
+ + "\7\0\1\7\120\6\2\7\45\0\11\6\2\0\147\6\2\0\4\6"
+ + "\1\0\4\6\14\0\13\6\115\0\12\6\1\7\3\6\1\7\4\6"
+ + "\1\7\27\6\5\7\20\0\1\6\7\0\64\6\14\0\2\7\62\6"
+ + "\21\7\13\0\12\7\6\0\22\7\6\6\3\0\1\6\4\0\12\7"
+ + "\34\6\10\7\2\0\27\6\15\7\14\0\35\6\3\0\4\7\57\6"
+ + "\16\7\16\0\1\6\12\7\46\0\51\6\16\7\11\0\3\6\1\7"
+ + "\10\6\2\7\2\0\12\7\6\0\27\6\3\0\1\6\1\7\4\0"
+ + "\60\6\1\7\1\6\3\7\2\6\2\7\5\6\2\7\1\6\1\7"
+ + "\1\6\30\0\3\6\2\0\13\6\5\7\2\0\3\6\2\7\12\0"
+ + "\6\6\2\0\6\6\2\0\6\6\11\0\7\6\1\0\7\6\221\0"
+ + "\43\6\10\7\1\0\2\7\2\0\12\7\6\0\u2ba4\6\14\0\27\6"
+ + "\4\0\61\6\u2104\0\u016e\6\2\0\152\6\46\0\7\6\14\0\5\6"
+ + "\5\0\1\6\1\7\12\6\1\0\15\6\1\0\5\6\1\0\1\6"
+ + "\1\0\2\6\1\0\2\6\1\0\154\6\41\0\u016b\6\22\0\100\6"
+ + "\2\0\66\6\50\0\15\6\3\0\20\7\20\0\7\7\14\0\2\6"
+ + "\30\0\3\6\31\0\1\6\6\0\5\6\1\0\207\6\2\0\1\7"
+ + "\4\0\1\6\13\0\12\7\7\0\32\6\4\0\1\6\1\0\32\6"
+ + "\13\0\131\6\3\0\6\6\2\0\6\6\2\0\6\6\2\0\3\6"
+ + "\3\0\2\6\3\0\2\6\22\0\3\7\4\0\14\6\1\0\32\6"
+ + "\1\0\23\6\1\0\2\6\1\0\17\6\2\0\16\6\42\0\173\6"
+ + "\105\0\65\6\210\0\1\7\202\0\35\6\3\0\61\6\57\0\37\6"
+ + "\21\0\33\6\65\0\36\6\2\0\44\6\4\0\10\6\1\0\5\6"
+ + "\52\0\236\6\2\0\12\7\u0356\0\6\6\2\0\1\6\1\0\54\6"
+ + "\1\0\2\6\3\0\1\6\2\0\27\6\252\0\26\6\12\0\32\6"
+ + "\106\0\70\6\6\0\2\6\100\0\1\6\3\7\1\0\2\7\5\0"
+ + "\4\7\4\6\1\0\3\6\1\0\33\6\4\0\3\7\4\0\1\7"
+ + "\40\0\35\6\203\0\66\6\12\0\26\6\12\0\23\6\215\0\111\6"
+ + "\u03b7\0\3\7\65\6\17\7\37\0\12\7\20\0\3\7\55\6\13\7"
+ + "\2\0\1\7\22\0\31\6\7\0\12\7\6\0\3\7\44\6\16\7"
+ + "\1\0\12\7\100\0\3\7\60\6\16\7\4\6\13\0\12\7\u04a6\0"
+ + "\53\6\15\7\10\0\12\7\u0936\0\u036f\6\221\0\143\6\u0b9d\0\u042f\6"
+ + "\u33d1\0\u0239\6\u04c7\0\105\6\13\0\1\6\56\7\20\0\4\7\15\6"
+ + "\u4060\0\2\6\u2163\0\5\7\3\0\26\7\2\0\7\7\36\0\4\7"
+ + "\224\0\3\7\u01bb\0\125\6\1\0\107\6\1\0\2\6\2\0\1\6"
+ + "\2\0\2\6\2\0\4\6\1\0\14\6\1\0\1\6\1\0\7\6"
+ + "\1\0\101\6\1\0\4\6\2\0\10\6\1\0\7\6\1\0\34\6"
+ + "\1\0\4\6\1\0\5\6\1\0\1\6\3\0\7\6\1\0\u0154\6"
+ + "\2\0\31\6\1\0\31\6\1\0\37\6\1\0\31\6\1\0\37\6"
+ + "\1\0\31\6\1\0\37\6\1\0\31\6\1\0\37\6\1\0\31\6"
+ + "\1\0\10\6\2\0\62\7\u1600\0\4\6\1\0\33\6\1\0\2\6"
+ + "\1\0\1\6\2\0\1\6\1\0\12\6\1\0\4\6\1\0\1\6"
+ + "\1\0\1\6\6\0\1\6\4\0\1\6\1\0\1\6\1\0\1\6"
+ + "\1\0\3\6\1\0\2\6\1\0\1\6\2\0\1\6\1\0\1\6"
+ + "\1\0\1\6\1\0\1\6\1\0\1\6\1\0\2\6\1\0\1\6"
+ + "\2\0\4\6\1\0\7\6\1\0\4\6\1\0\4\6\1\0\1\6"
+ + "\1\0\12\6\1\0\21\6\5\0\3\6\1\0\5\6\1\0\21\6"
+ + "\u1144\0\ua6d7\6\51\0\u1035\6\13\0\336\6\u3fe2\0\u021e\6\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\u05ee\0"
+ + "\1\7\36\0\140\7\200\0\360\7\uffff\0\uffff\0\ufe12\0";
- /**
- * Translates characters to character classes
- */
- private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);
+ /**
+ * 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();
+ /**
+ * Translates DFA states to action switch labels.
+ */
+ private static final int[] ZZ_ACTION = zzUnpackAction();
- private static final String ZZ_ACTION_PACKED_0 =
- "\3\0\1\1\2\2\1\3\1\1\1\4\1\1\1\5"+
- "\1\1\1\5\1\1\4\4\1\6\1\7\1\10\1\11"+
- "\1\12\1\13\1\14\1\15\2\16\1\1\1\17\1\3"+
- "\1\0\1\20\1\21\1\22\1\0\2\21\1\22\2\0"+
- "\4\4\2\23\1\24\1\25\1\23\1\26\1\27\1\30"+
- "\1\31\1\32\1\33\1\23\2\3\2\0\2\34\1\21"+
- "\1\22\1\0\5\4\4\0\1\34\1\21\1\35\3\4"+
- "\1\36\1\37\1\0\1\40\1\34\1\21\2\4\1\41"+
- "\1\34\1\21\2\4\1\34\1\21\1\4\1\42\1\34"+
- "\1\21\1\4\1\34\1\21\1\43\1\34\7\21";
+ private static final String ZZ_ACTION_PACKED_0
+ = "\3\0\1\1\2\2\1\3\1\1\1\4\1\1\1\5"
+ + "\1\1\1\5\1\1\4\4\1\6\1\7\1\10\1\11"
+ + "\1\12\1\13\1\14\1\15\2\16\1\1\1\17\1\3"
+ + "\1\0\1\20\1\21\1\22\1\0\2\21\1\22\2\0"
+ + "\4\4\2\23\1\24\1\25\1\23\1\26\1\27\1\30"
+ + "\1\31\1\32\1\33\1\23\2\3\2\0\2\34\1\21"
+ + "\1\22\1\0\5\4\4\0\1\34\1\21\1\35\3\4"
+ + "\1\36\1\37\1\0\1\40\1\34\1\21\2\4\1\41"
+ + "\1\34\1\21\2\4\1\34\1\21\1\4\1\42\1\34"
+ + "\1\21\1\4\1\34\1\21\1\43\1\34\7\21";
- private static int [] zzUnpackAction() {
- int [] result = new int[112];
- 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);
+ private static int[] zzUnpackAction() {
+ int[] result = new int[112];
+ int offset = 0;
+ offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
+ return result;
}
- 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\57\0\136\0\215\0\274\0\215\0\353\0\u011a"+
- "\0\u0149\0\u0178\0\u01a7\0\u01d6\0\u0205\0\u0234\0\u0263\0\u0292"+
- "\0\u02c1\0\u02f0\0\215\0\215\0\215\0\215\0\215\0\215"+
- "\0\215\0\u031f\0\u034e\0\215\0\u037d\0\215\0\u03ac\0\u03db"+
- "\0\u040a\0\u0439\0\u0468\0\u0497\0\u04c6\0\u04f5\0\u0524\0\u0553"+
- "\0\u0234\0\u0582\0\u05b1\0\u05e0\0\u060f\0\215\0\u063e\0\215"+
- "\0\215\0\u066d\0\215\0\215\0\215\0\215\0\215\0\215"+
- "\0\u069c\0\u06cb\0\215\0\u06fa\0\u0729\0\u0497\0\u0758\0\u0787"+
- "\0\u07b6\0\u07b6\0\u07e5\0\u0814\0\u0843\0\u0872\0\u08a1\0\u08d0"+
- "\0\u08ff\0\u092e\0\u095d\0\u098c\0\u09bb\0\u0149\0\u09ea\0\u0a19"+
- "\0\u0a48\0\u0149\0\215\0\u069c\0\215\0\u0a77\0\u0aa6\0\u0ad5"+
- "\0\u0b04\0\u0149\0\u0b33\0\u0b62\0\u0b91\0\u0bc0\0\u0bef\0\u0c1e"+
- "\0\u0c4d\0\u0149\0\u0c7c\0\u0cab\0\u0cda\0\u0d09\0\u0d38\0\u0149"+
- "\0\215\0\u0d67\0\u0d96\0\u0dc5\0\u0df4\0\u0e23\0\u0e52\0\u0468";
-
- private static int [] zzUnpackRowMap() {
- int [] result = new int[112];
- 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++);
+ 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;
}
- return j;
- }
- /**
- * The transition table of the DFA
- */
- private static final int [] ZZ_TRANS = zzUnpackTrans();
+ /**
+ * Translates a state to a row index in the transition table
+ */
+ private static final int[] ZZ_ROWMAP = zzUnpackRowMap();
- private static final String ZZ_TRANS_PACKED_0 =
- "\1\4\1\5\1\6\1\7\1\10\1\4\1\11\1\4"+
- "\1\12\1\13\1\14\1\15\2\11\2\15\1\16\1\11"+
- "\2\4\1\17\1\20\3\11\1\21\3\11\1\22\4\11"+
- "\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\11"+
- "\1\4\1\11\1\4\1\7\1\4\1\32\1\33\1\34"+
- "\20\32\1\35\24\32\1\36\6\32\57\4\61\0\1\6"+
- "\57\0\1\7\51\0\1\7\5\0\1\37\1\40\57\0"+
- "\2\11\1\0\1\11\1\0\5\11\1\0\1\11\2\0"+
- "\16\11\7\0\1\11\1\0\1\11\2\0\1\11\6\0"+
- "\1\41\5\0\2\41\3\0\1\41\2\0\16\41\7\0"+
- "\1\41\1\0\1\41\14\0\1\42\1\0\1\43\1\44"+
- "\1\0\1\45\1\46\1\47\1\50\6\0\1\50\22\0"+
- "\1\44\14\0\1\43\1\0\1\15\2\0\2\15\1\51"+
- "\47\0\1\15\1\0\1\15\2\0\2\15\1\47\1\50"+
- "\6\0\1\50\37\0\1\47\1\0\1\47\2\0\2\47"+
- "\45\0\2\11\1\0\1\11\1\0\5\11\1\0\1\11"+
- "\2\0\1\11\1\52\14\11\7\0\1\11\1\0\1\11"+
- "\2\0\1\11\6\0\2\11\1\0\1\11\1\0\5\11"+
- "\1\0\1\11\2\0\1\53\15\11\7\0\1\11\1\0"+
- "\1\11\2\0\1\11\6\0\2\11\1\0\1\11\1\0"+
- "\5\11\1\0\1\11\2\0\7\11\1\54\6\11\7\0"+
- "\1\11\1\0\1\11\2\0\1\11\6\0\2\11\1\0"+
- "\1\11\1\0\5\11\1\0\1\11\2\0\12\11\1\55"+
- "\3\11\7\0\1\11\1\0\1\11\2\0\1\11\1\32"+
- "\2\0\20\32\1\0\24\32\1\0\6\32\2\0\1\34"+
- "\54\0\1\56\2\0\6\56\1\57\4\56\2\57\3\56"+
- "\1\60\1\61\1\62\3\56\1\63\3\56\1\64\1\65"+
- "\11\56\1\66\1\67\1\70\1\71\3\0\1\37\1\72"+
- "\1\73\54\37\5\74\1\75\51\74\6\0\2\41\1\0"+
- "\1\41\1\0\5\41\1\0\1\41\2\0\16\41\7\0"+
- "\1\41\1\0\1\41\2\0\1\41\11\0\1\42\1\0"+
- "\1\43\2\0\1\45\1\46\1\47\1\50\6\0\1\50"+
- "\37\0\1\43\1\0\1\43\2\0\2\43\1\47\1\50"+
- "\6\0\1\50\37\0\1\76\1\0\1\77\1\0\3\77"+
- "\1\0\1\77\5\0\3\77\1\0\1\77\15\0\1\77"+
- "\16\0\1\46\1\0\1\43\2\0\2\46\1\47\1\50"+
- "\6\0\1\50\37\0\1\100\1\0\1\43\2\0\2\100"+
- "\1\47\1\50\6\0\1\50\37\0\1\47\1\0\1\47"+
- "\2\0\2\47\1\0\1\50\6\0\1\50\37\0\1\101"+
- "\1\102\1\101\2\0\2\101\2\0\1\102\42\0\2\11"+
- "\1\0\1\11\1\0\5\11\1\0\1\11\2\0\2\11"+
- "\1\103\13\11\7\0\1\11\1\0\1\11\2\0\1\11"+
- "\6\0\2\11\1\0\1\11\1\0\5\11\1\0\1\11"+
- "\2\0\3\11\1\104\7\11\1\105\2\11\7\0\1\11"+
- "\1\0\1\11\2\0\1\11\6\0\2\11\1\0\1\11"+
- "\1\0\5\11\1\0\1\11\2\0\2\11\1\106\13\11"+
- "\7\0\1\11\1\0\1\11\2\0\1\11\6\0\2\11"+
- "\1\0\1\11\1\0\5\11\1\0\1\11\2\0\1\11"+
- "\1\107\14\11\7\0\1\11\1\0\1\11\2\0\1\11"+
- "\11\0\1\110\4\0\2\110\50\0\1\111\1\0\1\111"+
- "\1\0\3\111\1\0\1\111\5\0\3\111\1\0\1\111"+
- "\15\0\1\111\16\0\1\112\1\0\1\112\1\0\3\112"+
- "\1\0\1\112\5\0\3\112\1\0\1\112\15\0\1\112"+
- "\7\0\1\73\54\0\5\74\1\113\51\74\4\0\1\73"+
- "\1\75\62\0\1\114\1\0\1\114\1\0\3\114\1\0"+
- "\1\114\5\0\3\114\1\0\1\114\15\0\1\114\16\0"+
- "\1\115\1\0\1\43\2\0\2\115\1\47\1\50\6\0"+
- "\1\50\37\0\1\101\1\0\1\101\2\0\2\101\45\0"+
- "\2\11\1\0\1\11\1\0\5\11\1\0\1\11\2\0"+
- "\2\11\1\116\13\11\7\0\1\11\1\0\1\11\2\0"+
- "\1\11\6\0\2\11\1\0\1\11\1\0\5\11\1\0"+
- "\1\11\2\0\4\11\1\117\11\11\7\0\1\11\1\0"+
- "\1\11\2\0\1\11\6\0\2\11\1\0\1\11\1\0"+
- "\5\11\1\0\1\11\2\0\1\120\15\11\7\0\1\11"+
- "\1\0\1\11\2\0\1\11\6\0\2\11\1\0\1\11"+
- "\1\0\5\11\1\0\1\11\2\0\10\11\1\121\5\11"+
- "\7\0\1\11\1\0\1\11\2\0\1\11\6\0\2\11"+
- "\1\0\1\11\1\0\5\11\1\0\1\11\2\0\4\11"+
- "\1\122\11\11\7\0\1\11\1\0\1\11\2\0\1\11"+
- "\11\0\1\123\4\0\2\123\50\0\1\124\1\0\1\124"+
- "\1\0\3\124\1\0\1\124\5\0\3\124\1\0\1\124"+
- "\15\0\1\124\16\0\1\125\1\0\1\125\1\0\3\125"+
- "\1\0\1\125\5\0\3\125\1\0\1\125\15\0\1\125"+
- "\5\0\4\74\1\73\1\113\51\74\11\0\1\126\1\0"+
- "\1\126\1\0\3\126\1\0\1\126\5\0\3\126\1\0"+
- "\1\126\15\0\1\126\16\0\1\127\1\0\1\43\2\0"+
- "\2\127\1\47\1\50\6\0\1\50\34\0\2\11\1\0"+
- "\1\11\1\0\5\11\1\0\1\11\2\0\5\11\1\130"+
- "\10\11\7\0\1\11\1\0\1\11\2\0\1\11\6\0"+
- "\2\11\1\0\1\11\1\0\5\11\1\0\1\11\2\0"+
- "\14\11\1\131\1\11\7\0\1\11\1\0\1\11\2\0"+
- "\1\11\6\0\2\11\1\0\1\11\1\0\5\11\1\0"+
- "\1\11\2\0\4\11\1\132\11\11\7\0\1\11\1\0"+
- "\1\11\2\0\1\11\11\0\1\133\1\0\1\133\1\0"+
- "\3\133\1\0\1\133\5\0\3\133\1\0\1\133\15\0"+
- "\1\133\16\0\1\134\1\0\1\43\2\0\2\134\1\47"+
- "\1\50\6\0\1\50\34\0\2\11\1\0\1\11\1\0"+
- "\5\11\1\0\1\11\2\0\6\11\1\135\7\11\7\0"+
- "\1\11\1\0\1\11\2\0\1\11\6\0\2\11\1\0"+
- "\1\11\1\0\5\11\1\0\1\11\2\0\15\11\1\136"+
- "\7\0\1\11\1\0\1\11\2\0\1\11\11\0\1\137"+
- "\1\0\1\137\1\0\3\137\1\0\1\137\5\0\3\137"+
- "\1\0\1\137\15\0\1\137\16\0\1\140\1\0\1\43"+
- "\2\0\2\140\1\47\1\50\6\0\1\50\34\0\2\11"+
- "\1\0\1\11\1\0\5\11\1\0\1\11\2\0\1\141"+
- "\15\11\7\0\1\11\1\0\1\11\2\0\1\11\6\0"+
- "\2\11\1\0\1\11\1\0\5\11\1\0\1\11\2\0"+
- "\1\142\15\11\7\0\1\11\1\0\1\11\2\0\1\11"+
- "\11\0\1\143\1\0\1\143\1\0\3\143\1\0\1\143"+
- "\5\0\3\143\1\0\1\143\15\0\1\143\16\0\1\144"+
- "\1\0\1\43\2\0\2\144\1\47\1\50\6\0\1\50"+
- "\34\0\2\11\1\0\1\11\1\0\5\11\1\0\1\11"+
- "\2\0\4\11\1\145\11\11\7\0\1\11\1\0\1\11"+
- "\2\0\1\11\11\0\1\146\1\0\1\146\1\0\3\146"+
- "\1\0\1\146\5\0\3\146\1\0\1\146\15\0\1\146"+
- "\16\0\1\147\1\0\1\43\2\0\2\147\1\47\1\50"+
- "\6\0\1\50\34\0\2\11\1\0\1\11\1\0\5\11"+
- "\1\0\1\11\2\0\3\11\1\150\12\11\7\0\1\11"+
- "\1\0\1\11\2\0\1\11\11\0\1\151\1\0\1\151"+
- "\1\0\3\151\1\0\1\151\5\0\3\151\1\0\1\151"+
- "\15\0\1\151\16\0\1\152\1\0\1\43\2\0\2\152"+
- "\1\47\1\50\6\0\1\50\37\0\1\153\1\0\1\43"+
- "\2\0\2\153\1\47\1\50\6\0\1\50\37\0\1\154"+
- "\1\0\1\43\2\0\2\154\1\47\1\50\6\0\1\50"+
- "\37\0\1\155\1\0\1\43\2\0\2\155\1\47\1\50"+
- "\6\0\1\50\37\0\1\156\1\0\1\43\2\0\2\156"+
- "\1\47\1\50\6\0\1\50\37\0\1\157\1\0\1\43"+
- "\2\0\2\157\1\47\1\50\6\0\1\50\37\0\1\160"+
- "\1\0\1\43\2\0\2\160\1\47\1\50\6\0\1\50"+
- "\26\0";
+ private static final String ZZ_ROWMAP_PACKED_0
+ = "\0\0\0\57\0\136\0\215\0\274\0\215\0\353\0\u011a"
+ + "\0\u0149\0\u0178\0\u01a7\0\u01d6\0\u0205\0\u0234\0\u0263\0\u0292"
+ + "\0\u02c1\0\u02f0\0\215\0\215\0\215\0\215\0\215\0\215"
+ + "\0\215\0\u031f\0\u034e\0\215\0\u037d\0\215\0\u03ac\0\u03db"
+ + "\0\u040a\0\u0439\0\u0468\0\u0497\0\u04c6\0\u04f5\0\u0524\0\u0553"
+ + "\0\u0234\0\u0582\0\u05b1\0\u05e0\0\u060f\0\215\0\u063e\0\215"
+ + "\0\215\0\u066d\0\215\0\215\0\215\0\215\0\215\0\215"
+ + "\0\u069c\0\u06cb\0\215\0\u06fa\0\u0729\0\u0497\0\u0758\0\u0787"
+ + "\0\u07b6\0\u07b6\0\u07e5\0\u0814\0\u0843\0\u0872\0\u08a1\0\u08d0"
+ + "\0\u08ff\0\u092e\0\u095d\0\u098c\0\u09bb\0\u0149\0\u09ea\0\u0a19"
+ + "\0\u0a48\0\u0149\0\215\0\u069c\0\215\0\u0a77\0\u0aa6\0\u0ad5"
+ + "\0\u0b04\0\u0149\0\u0b33\0\u0b62\0\u0b91\0\u0bc0\0\u0bef\0\u0c1e"
+ + "\0\u0c4d\0\u0149\0\u0c7c\0\u0cab\0\u0cda\0\u0d09\0\u0d38\0\u0149"
+ + "\0\215\0\u0d67\0\u0d96\0\u0dc5\0\u0df4\0\u0e23\0\u0e52\0\u0468";
- private static int [] zzUnpackTrans() {
- int [] result = new int[3713];
- 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);
+ private static int[] zzUnpackRowMap() {
+ int[] result = new int[112];
+ int offset = 0;
+ offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
+ return result;
}
- 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[] = {
- "Unkown internal scanner error",
- "Error: could not match input",
- "Error: pushback value was too large"
- };
-
- /**
- * ZZ_ATTRIBUTE[aState] contains the attributes of state aState
- */
- private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
-
- private static final String ZZ_ATTRIBUTE_PACKED_0 =
- "\3\0\1\11\1\1\1\11\14\1\7\11\2\1\1\11"+
- "\1\1\1\11\1\1\1\0\3\1\1\0\3\1\2\0"+
- "\4\1\1\11\1\1\2\11\1\1\6\11\2\1\1\11"+
- "\2\0\4\1\1\0\5\1\4\0\7\1\1\11\1\0"+
- "\1\11\23\1\1\11\7\1";
-
- private static int [] zzUnpackAttribute() {
- int [] result = new int[112];
- 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);
+ 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;
}
- return j;
- }
- /** the input device */
- private java.io.Reader zzReader;
+ /**
+ * The transition table of the DFA
+ */
+ private static final int[] ZZ_TRANS = zzUnpackTrans();
- /** the current state of the DFA */
- private int zzState;
+ private static final String ZZ_TRANS_PACKED_0
+ = "\1\4\1\5\1\6\1\7\1\10\1\4\1\11\1\4"
+ + "\1\12\1\13\1\14\1\15\2\11\2\15\1\16\1\11"
+ + "\2\4\1\17\1\20\3\11\1\21\3\11\1\22\4\11"
+ + "\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\11"
+ + "\1\4\1\11\1\4\1\7\1\4\1\32\1\33\1\34"
+ + "\20\32\1\35\24\32\1\36\6\32\57\4\61\0\1\6"
+ + "\57\0\1\7\51\0\1\7\5\0\1\37\1\40\57\0"
+ + "\2\11\1\0\1\11\1\0\5\11\1\0\1\11\2\0"
+ + "\16\11\7\0\1\11\1\0\1\11\2\0\1\11\6\0"
+ + "\1\41\5\0\2\41\3\0\1\41\2\0\16\41\7\0"
+ + "\1\41\1\0\1\41\14\0\1\42\1\0\1\43\1\44"
+ + "\1\0\1\45\1\46\1\47\1\50\6\0\1\50\22\0"
+ + "\1\44\14\0\1\43\1\0\1\15\2\0\2\15\1\51"
+ + "\47\0\1\15\1\0\1\15\2\0\2\15\1\47\1\50"
+ + "\6\0\1\50\37\0\1\47\1\0\1\47\2\0\2\47"
+ + "\45\0\2\11\1\0\1\11\1\0\5\11\1\0\1\11"
+ + "\2\0\1\11\1\52\14\11\7\0\1\11\1\0\1\11"
+ + "\2\0\1\11\6\0\2\11\1\0\1\11\1\0\5\11"
+ + "\1\0\1\11\2\0\1\53\15\11\7\0\1\11\1\0"
+ + "\1\11\2\0\1\11\6\0\2\11\1\0\1\11\1\0"
+ + "\5\11\1\0\1\11\2\0\7\11\1\54\6\11\7\0"
+ + "\1\11\1\0\1\11\2\0\1\11\6\0\2\11\1\0"
+ + "\1\11\1\0\5\11\1\0\1\11\2\0\12\11\1\55"
+ + "\3\11\7\0\1\11\1\0\1\11\2\0\1\11\1\32"
+ + "\2\0\20\32\1\0\24\32\1\0\6\32\2\0\1\34"
+ + "\54\0\1\56\2\0\6\56\1\57\4\56\2\57\3\56"
+ + "\1\60\1\61\1\62\3\56\1\63\3\56\1\64\1\65"
+ + "\11\56\1\66\1\67\1\70\1\71\3\0\1\37\1\72"
+ + "\1\73\54\37\5\74\1\75\51\74\6\0\2\41\1\0"
+ + "\1\41\1\0\5\41\1\0\1\41\2\0\16\41\7\0"
+ + "\1\41\1\0\1\41\2\0\1\41\11\0\1\42\1\0"
+ + "\1\43\2\0\1\45\1\46\1\47\1\50\6\0\1\50"
+ + "\37\0\1\43\1\0\1\43\2\0\2\43\1\47\1\50"
+ + "\6\0\1\50\37\0\1\76\1\0\1\77\1\0\3\77"
+ + "\1\0\1\77\5\0\3\77\1\0\1\77\15\0\1\77"
+ + "\16\0\1\46\1\0\1\43\2\0\2\46\1\47\1\50"
+ + "\6\0\1\50\37\0\1\100\1\0\1\43\2\0\2\100"
+ + "\1\47\1\50\6\0\1\50\37\0\1\47\1\0\1\47"
+ + "\2\0\2\47\1\0\1\50\6\0\1\50\37\0\1\101"
+ + "\1\102\1\101\2\0\2\101\2\0\1\102\42\0\2\11"
+ + "\1\0\1\11\1\0\5\11\1\0\1\11\2\0\2\11"
+ + "\1\103\13\11\7\0\1\11\1\0\1\11\2\0\1\11"
+ + "\6\0\2\11\1\0\1\11\1\0\5\11\1\0\1\11"
+ + "\2\0\3\11\1\104\7\11\1\105\2\11\7\0\1\11"
+ + "\1\0\1\11\2\0\1\11\6\0\2\11\1\0\1\11"
+ + "\1\0\5\11\1\0\1\11\2\0\2\11\1\106\13\11"
+ + "\7\0\1\11\1\0\1\11\2\0\1\11\6\0\2\11"
+ + "\1\0\1\11\1\0\5\11\1\0\1\11\2\0\1\11"
+ + "\1\107\14\11\7\0\1\11\1\0\1\11\2\0\1\11"
+ + "\11\0\1\110\4\0\2\110\50\0\1\111\1\0\1\111"
+ + "\1\0\3\111\1\0\1\111\5\0\3\111\1\0\1\111"
+ + "\15\0\1\111\16\0\1\112\1\0\1\112\1\0\3\112"
+ + "\1\0\1\112\5\0\3\112\1\0\1\112\15\0\1\112"
+ + "\7\0\1\73\54\0\5\74\1\113\51\74\4\0\1\73"
+ + "\1\75\62\0\1\114\1\0\1\114\1\0\3\114\1\0"
+ + "\1\114\5\0\3\114\1\0\1\114\15\0\1\114\16\0"
+ + "\1\115\1\0\1\43\2\0\2\115\1\47\1\50\6\0"
+ + "\1\50\37\0\1\101\1\0\1\101\2\0\2\101\45\0"
+ + "\2\11\1\0\1\11\1\0\5\11\1\0\1\11\2\0"
+ + "\2\11\1\116\13\11\7\0\1\11\1\0\1\11\2\0"
+ + "\1\11\6\0\2\11\1\0\1\11\1\0\5\11\1\0"
+ + "\1\11\2\0\4\11\1\117\11\11\7\0\1\11\1\0"
+ + "\1\11\2\0\1\11\6\0\2\11\1\0\1\11\1\0"
+ + "\5\11\1\0\1\11\2\0\1\120\15\11\7\0\1\11"
+ + "\1\0\1\11\2\0\1\11\6\0\2\11\1\0\1\11"
+ + "\1\0\5\11\1\0\1\11\2\0\10\11\1\121\5\11"
+ + "\7\0\1\11\1\0\1\11\2\0\1\11\6\0\2\11"
+ + "\1\0\1\11\1\0\5\11\1\0\1\11\2\0\4\11"
+ + "\1\122\11\11\7\0\1\11\1\0\1\11\2\0\1\11"
+ + "\11\0\1\123\4\0\2\123\50\0\1\124\1\0\1\124"
+ + "\1\0\3\124\1\0\1\124\5\0\3\124\1\0\1\124"
+ + "\15\0\1\124\16\0\1\125\1\0\1\125\1\0\3\125"
+ + "\1\0\1\125\5\0\3\125\1\0\1\125\15\0\1\125"
+ + "\5\0\4\74\1\73\1\113\51\74\11\0\1\126\1\0"
+ + "\1\126\1\0\3\126\1\0\1\126\5\0\3\126\1\0"
+ + "\1\126\15\0\1\126\16\0\1\127\1\0\1\43\2\0"
+ + "\2\127\1\47\1\50\6\0\1\50\34\0\2\11\1\0"
+ + "\1\11\1\0\5\11\1\0\1\11\2\0\5\11\1\130"
+ + "\10\11\7\0\1\11\1\0\1\11\2\0\1\11\6\0"
+ + "\2\11\1\0\1\11\1\0\5\11\1\0\1\11\2\0"
+ + "\14\11\1\131\1\11\7\0\1\11\1\0\1\11\2\0"
+ + "\1\11\6\0\2\11\1\0\1\11\1\0\5\11\1\0"
+ + "\1\11\2\0\4\11\1\132\11\11\7\0\1\11\1\0"
+ + "\1\11\2\0\1\11\11\0\1\133\1\0\1\133\1\0"
+ + "\3\133\1\0\1\133\5\0\3\133\1\0\1\133\15\0"
+ + "\1\133\16\0\1\134\1\0\1\43\2\0\2\134\1\47"
+ + "\1\50\6\0\1\50\34\0\2\11\1\0\1\11\1\0"
+ + "\5\11\1\0\1\11\2\0\6\11\1\135\7\11\7\0"
+ + "\1\11\1\0\1\11\2\0\1\11\6\0\2\11\1\0"
+ + "\1\11\1\0\5\11\1\0\1\11\2\0\15\11\1\136"
+ + "\7\0\1\11\1\0\1\11\2\0\1\11\11\0\1\137"
+ + "\1\0\1\137\1\0\3\137\1\0\1\137\5\0\3\137"
+ + "\1\0\1\137\15\0\1\137\16\0\1\140\1\0\1\43"
+ + "\2\0\2\140\1\47\1\50\6\0\1\50\34\0\2\11"
+ + "\1\0\1\11\1\0\5\11\1\0\1\11\2\0\1\141"
+ + "\15\11\7\0\1\11\1\0\1\11\2\0\1\11\6\0"
+ + "\2\11\1\0\1\11\1\0\5\11\1\0\1\11\2\0"
+ + "\1\142\15\11\7\0\1\11\1\0\1\11\2\0\1\11"
+ + "\11\0\1\143\1\0\1\143\1\0\3\143\1\0\1\143"
+ + "\5\0\3\143\1\0\1\143\15\0\1\143\16\0\1\144"
+ + "\1\0\1\43\2\0\2\144\1\47\1\50\6\0\1\50"
+ + "\34\0\2\11\1\0\1\11\1\0\5\11\1\0\1\11"
+ + "\2\0\4\11\1\145\11\11\7\0\1\11\1\0\1\11"
+ + "\2\0\1\11\11\0\1\146\1\0\1\146\1\0\3\146"
+ + "\1\0\1\146\5\0\3\146\1\0\1\146\15\0\1\146"
+ + "\16\0\1\147\1\0\1\43\2\0\2\147\1\47\1\50"
+ + "\6\0\1\50\34\0\2\11\1\0\1\11\1\0\5\11"
+ + "\1\0\1\11\2\0\3\11\1\150\12\11\7\0\1\11"
+ + "\1\0\1\11\2\0\1\11\11\0\1\151\1\0\1\151"
+ + "\1\0\3\151\1\0\1\151\5\0\3\151\1\0\1\151"
+ + "\15\0\1\151\16\0\1\152\1\0\1\43\2\0\2\152"
+ + "\1\47\1\50\6\0\1\50\37\0\1\153\1\0\1\43"
+ + "\2\0\2\153\1\47\1\50\6\0\1\50\37\0\1\154"
+ + "\1\0\1\43\2\0\2\154\1\47\1\50\6\0\1\50"
+ + "\37\0\1\155\1\0\1\43\2\0\2\155\1\47\1\50"
+ + "\6\0\1\50\37\0\1\156\1\0\1\43\2\0\2\156"
+ + "\1\47\1\50\6\0\1\50\37\0\1\157\1\0\1\43"
+ + "\2\0\2\157\1\47\1\50\6\0\1\50\37\0\1\160"
+ + "\1\0\1\43\2\0\2\160\1\47\1\50\6\0\1\50"
+ + "\26\0";
- /** the current lexical state */
- private int zzLexicalState = YYINITIAL;
+ private static int[] zzUnpackTrans() {
+ int[] result = new int[3713];
+ int offset = 0;
+ offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
+ return result;
+ }
- /** this buffer contains the current text to be matched and is
- the source of the yytext() string */
- private char zzBuffer[] = new char[ZZ_BUFFERSIZE];
+ 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;
+ }
- /** the textposition at the last accepting state */
- private int zzMarkedPos;
- /** the current text position in the buffer */
- private int zzCurrentPos;
+ /* 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;
- /** startRead marks the beginning of the yytext() string in the buffer */
- private int zzStartRead;
+ /* error messages for the codes above */
+ private static final String ZZ_ERROR_MSG[] = {
+ "Unkown internal scanner error",
+ "Error: could not match input",
+ "Error: pushback value was too large"
+ };
- /** endRead marks the last character in the buffer, that has been read
- from input */
- private int zzEndRead;
+ /**
+ * ZZ_ATTRIBUTE[aState] contains the attributes of state aState
+ */
+ private static final int[] ZZ_ATTRIBUTE = zzUnpackAttribute();
- /** number of newlines encountered up to the start of the matched text */
- private int yyline;
+ private static final String ZZ_ATTRIBUTE_PACKED_0
+ = "\3\0\1\11\1\1\1\11\14\1\7\11\2\1\1\11"
+ + "\1\1\1\11\1\1\1\0\3\1\1\0\3\1\2\0"
+ + "\4\1\1\11\1\1\2\11\1\1\6\11\2\1\1\11"
+ + "\2\0\4\1\1\0\5\1\4\0\7\1\1\11\1\0"
+ + "\1\11\23\1\1\11\7\1";
- /** the number of characters up to the start of the matched text */
- private int yychar;
+ private static int[] zzUnpackAttribute() {
+ int[] result = new int[112];
+ int offset = 0;
+ offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
+ return result;
+ }
- /**
- * the number of characters from the last newline up to the start of the
- * matched text
- */
- private int yycolumn;
+ 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;
+ }
- /**
- * zzAtBOL == true <=> the scanner is currently at the beginning of a line
- */
- private boolean zzAtBOL = true;
+ /**
+ * the input device
+ */
+ private java.io.Reader zzReader;
- /** zzAtEOF == true <=> the scanner is at the EOF */
- private boolean zzAtEOF;
+ /**
+ * the current state of the DFA
+ */
+ private int zzState;
- /** 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;
+ /**
+ * the current lexical state
+ */
+ private int zzLexicalState = YYINITIAL;
- /* user code: */
+ /**
+ * 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: */
StringBuilder string = new StringBuilder();
private static String xmlTagName = "";
@@ -548,9 +589,10 @@ public final class Amf3Lexer {
}
ParsedSymbol last;
- public ParsedSymbol lex() throws java.io.IOException, Amf3ParseException{
+
+ public ParsedSymbol lex() throws java.io.IOException, Amf3ParseException {
ParsedSymbol ret = null;
- if (!pushedBack.isEmpty()){
+ if (!pushedBack.isEmpty()) {
ret = last = pushedBack.pop();
} else {
ret = last = yylex();
@@ -558,476 +600,505 @@ public final class Amf3Lexer {
return ret;
}
-
-
- /**
- * Creates a new scanner
- *
- * @param in the java.io.Reader to read input from.
- */
- public Amf3Lexer(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 < 2856) {
- int count = packed.charAt(i++);
- char value = packed.charAt(i++);
- do map[j++] = value; while (--count > 0);
- }
- return map;
- }
-
-
- /**
- * Refills the input buffer.
- *
- * @return false, 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;
+ /**
+ * Creates a new scanner
+ *
+ * @param in the java.io.Reader to read input from.
+ */
+ public Amf3Lexer(java.io.Reader in) {
+ this.zzReader = in;
}
- /* 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 totalRead = 0;
- while (totalRead < requested) {
- int numRead = zzReader.read(zzBuffer, zzEndRead + totalRead, requested - totalRead);
- if (numRead == -1) {
- break;
- }
- totalRead += numRead;
- }
-
- if (totalRead > 0) {
- zzEndRead += totalRead;
- if (totalRead == requested) { /* possibly more input available */
- if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) {
- --zzEndRead;
- zzFinalHighSurrogate = 1;
+ /**
+ * 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 < 2856) {
+ int count = packed.charAt(i++);
+ char value = packed.charAt(i++);
+ do {
+ map[j++] = value;
+ } while (--count > 0);
}
- }
- return false;
+ return map;
}
- // totalRead = 0: End of stream
- return true;
- }
+ /**
+ * Refills the input buffer.
+ *
+ * @return false, iff there was new input.
+ *
+ * @exception java.io.IOException if any I/O-Error occurs
+ */
+ private boolean zzRefill() throws java.io.IOException {
-
- /**
- * Closes the input stream.
- */
- public final void yyclose() throws java.io.IOException {
- zzAtEOF = true; /* indicate end of file */
- zzEndRead = zzStartRead; /* invalidate buffer */
+ /* first: make room (if you can) */
+ if (zzStartRead > 0) {
+ zzEndRead += zzFinalHighSurrogate;
+ zzFinalHighSurrogate = 0;
+ System.arraycopy(zzBuffer, zzStartRead,
+ zzBuffer, 0,
+ zzEndRead - zzStartRead);
- if (zzReader != null)
- zzReader.close();
- }
+ /* 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;
+ }
- /**
- * 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
- * cannot be reused (internal buffer is discarded and lost).
- * Lexical state is set to ZZ_INITIAL.
- *
- * 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];
- }
+ /* fill the buffer with new input */
+ int requested = zzBuffer.length - zzEndRead;
+ int totalRead = 0;
+ while (totalRead < requested) {
+ int numRead = zzReader.read(zzBuffer, zzEndRead + totalRead, requested - totalRead);
+ if (numRead == -1) {
+ break;
+ }
+ totalRead += numRead;
+ }
+ if (totalRead > 0) {
+ zzEndRead += totalRead;
+ if (totalRead == requested) {
+ /* possibly more input available */
+ if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) {
+ --zzEndRead;
+ zzFinalHighSurrogate = 1;
+ }
+ }
+ return false;
+ }
- /**
- * 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 pos 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 occured 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];
+ // totalRead = 0: End of stream
+ return true;
}
- throw new Error(message);
- }
+ /**
+ * 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();
+ }
+ }
- /**
- * 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);
+ /**
+ * 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
+ * cannot be reused (internal buffer is discarded and lost). Lexical
+ * state is set to ZZ_INITIAL.
+ *
+ * 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];
+ }
+ }
- zzMarkedPos -= number;
- }
+ /**
+ * 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;
+ }
- /**
- * 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 ParsedSymbol yylex() throws java.io.IOException, Amf3ParseException {
- int zzInput;
- int zzAction;
+ /**
+ * Returns the text matched by the current regular expression.
+ */
+ public final String yytext() {
+ return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
+ }
- // cached fields:
- int zzCurrentPosL;
- int zzMarkedPosL;
- int zzEndReadL = zzEndRead;
- char [] zzBufferL = zzBuffer;
- char [] zzCMapL = ZZ_CMAP;
+ /**
+ * Returns the character at position pos 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];
+ }
- int [] zzTransL = ZZ_TRANS;
- int [] zzRowMapL = ZZ_ROWMAP;
- int [] zzAttrL = ZZ_ATTRIBUTE;
+ /**
+ * Returns the length of the matched text region.
+ */
+ public final int yylength() {
+ return zzMarkedPos - zzStartRead;
+ }
- while (true) {
- zzMarkedPosL = zzMarkedPos;
+ /**
+ * Reports an error that occured 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];
+ }
- yychar+= zzMarkedPosL-zzStartRead;
+ throw new Error(message);
+ }
- zzAction = -1;
+ /**
+ * 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);
+ }
- zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
-
- zzState = ZZ_LEXSTATE[zzLexicalState];
+ zzMarkedPos -= number;
+ }
- // set up zzAction for empty match case:
- int zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- }
+ /**
+ * 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 ParsedSymbol yylex() throws java.io.IOException, Amf3ParseException {
+ 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;
- 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;
+ zzMarkedPosL = zzMarkedPos;
- zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- zzMarkedPosL = zzCurrentPosL;
- if ( (zzAttributes & 8) == 8 ) break zzForAction;
- }
+ 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;
+
+ switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
+ case 1: {
+ }
+ case 36:
+ break;
+ case 2: {
+ yyline++;
+ }
+ case 37:
+ break;
+ case 3: {
+ /*ignore*/
+ }
+ case 38:
+ break;
+ case 4: {
+ return new ParsedSymbol(SymbolGroup.IDENTIFIER, SymbolType.IDENTIFIER, yytext());
+ }
+ case 39:
+ break;
+ case 5: {
+ return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong((yytext())));
+ }
+ case 40:
+ break;
+ case 6: {
+ return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.CURLY_OPEN, yytext());
+ }
+ case 41:
+ break;
+ case 7: {
+ return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.CURLY_CLOSE, yytext());
+ }
+ case 42:
+ break;
+ case 8: {
+ return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.BRACKET_OPEN, yytext());
+ }
+ case 43:
+ break;
+ case 9: {
+ return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.BRACKET_CLOSE, yytext());
+ }
+ case 44:
+ break;
+ case 10: {
+ return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.COMMA, yytext());
+ }
+ case 45:
+ break;
+ case 11: {
+ return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.COLON, yytext());
+ }
+ case 46:
+ break;
+ case 12: {
+ string.setLength(0);
+ yybegin(STRING);
+ }
+ case 47:
+ break;
+ case 13: {
+ string.append(yytext());
+ }
+ case 48:
+ break;
+ case 14: {
+ yybegin(YYINITIAL);
+ yyline++;
+ }
+ case 49:
+ break;
+ case 15: {
+ yybegin(YYINITIAL);
+ // length also includes the trailing quote
+ return new ParsedSymbol(SymbolGroup.STRING, SymbolType.STRING, string.toString());
+ }
+ case 50:
+ break;
+ case 16: {
+ return new ParsedSymbol(SymbolGroup.IDENTIFIER, SymbolType.REFERENCE, yytext().substring(1));
+ }
+ case 51:
+ break;
+ case 17: {
+ return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong(yytext(), 8));
+ }
+ case 52:
+ break;
+ case 18: {
+ return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, Double.parseDouble((yytext())));
+ }
+ case 53:
+ break;
+ case 19: {
+ string.append('\\');
+ /*illegal escape sequence*/
+ }
+ case 54:
+ break;
+ case 20: {
+ string.append('\\');
+ }
+ case 55:
+ break;
+ case 21: {
+ string.append('\n');
+ }
+ case 56:
+ break;
+ case 22: {
+ string.append('\f');
+ }
+ case 57:
+ break;
+ case 23: {
+ string.append('\t');
+ }
+ case 58:
+ break;
+ case 24: {
+ string.append('\r');
+ }
+ case 59:
+ break;
+ case 25: {
+ string.append('\"');
+ }
+ case 60:
+ break;
+ case 26: {
+ string.append('\b');
+ }
+ case 61:
+ break;
+ case 27: {
+ string.append('\'');
+ }
+ case 62:
+ break;
+ case 28: {
+ return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong(yytext().substring(2), 16));
+ }
+ case 63:
+ break;
+ case 29: {
+ return new ParsedSymbol(SymbolGroup.GLOBALCONST, SymbolType.NULL, yytext());
+ }
+ case 64:
+ break;
+ case 30: {
+ return new ParsedSymbol(SymbolGroup.KEYWORD, SymbolType.TRUE, yytext());
+ }
+ case 65:
+ break;
+ case 31: {
+ char val = (char) Integer.parseInt(yytext().substring(1), 8);
+ string.append(val);
+ }
+ case 66:
+ break;
+ case 32: {
+ char val = (char) Integer.parseInt(yytext().substring(2), 16);
+ string.append(val);
+ }
+ case 67:
+ break;
+ case 33: {
+ return new ParsedSymbol(SymbolGroup.KEYWORD, SymbolType.FALSE, yytext());
+ }
+ case 68:
+ break;
+ case 34: {
+ return new ParsedSymbol(SymbolGroup.UNKNOWN, SymbolType.UNKNOWN, yytext());
+ }
+ case 69:
+ break;
+ case 35: {
+ return new ParsedSymbol(SymbolGroup.GLOBALCONST, SymbolType.UNDEFINED, yytext());
+ }
+ case 70:
+ break;
+ default:
+ if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
+ zzAtEOF = true;
+ {
+ return new ParsedSymbol(SymbolGroup.EOF, SymbolType.EOF, null);
+ }
+ } else {
+ zzScanError(ZZ_NO_MATCH);
+ }
+ }
}
- }
-
- // store back cached position
- zzMarkedPos = zzMarkedPosL;
-
- switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
- case 1:
- {
- }
- case 36: break;
- case 2:
- { yyline++;
- }
- case 37: break;
- case 3:
- { /*ignore*/
- }
- case 38: break;
- case 4:
- { return new ParsedSymbol(SymbolGroup.IDENTIFIER, SymbolType.IDENTIFIER, yytext());
- }
- case 39: break;
- case 5:
- { return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong((yytext())));
- }
- case 40: break;
- case 6:
- { return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.CURLY_OPEN, yytext());
- }
- case 41: break;
- case 7:
- { return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.CURLY_CLOSE, yytext());
- }
- case 42: break;
- case 8:
- { return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.BRACKET_OPEN, yytext());
- }
- case 43: break;
- case 9:
- { return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.BRACKET_CLOSE, yytext());
- }
- case 44: break;
- case 10:
- { return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.COMMA, yytext());
- }
- case 45: break;
- case 11:
- { return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.COLON, yytext());
- }
- case 46: break;
- case 12:
- { string.setLength(0);
- yybegin(STRING);
- }
- case 47: break;
- case 13:
- { string.append(yytext());
- }
- case 48: break;
- case 14:
- { yybegin(YYINITIAL); yyline++;
- }
- case 49: break;
- case 15:
- { yybegin(YYINITIAL);
- // length also includes the trailing quote
- return new ParsedSymbol(SymbolGroup.STRING, SymbolType.STRING, string.toString());
- }
- case 50: break;
- case 16:
- { return new ParsedSymbol(SymbolGroup.IDENTIFIER, SymbolType.REFERENCE, yytext().substring(1));
- }
- case 51: break;
- case 17:
- { return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong(yytext(), 8));
- }
- case 52: break;
- case 18:
- { return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, Double.parseDouble((yytext())));
- }
- case 53: break;
- case 19:
- { string.append('\\'); /*illegal escape sequence*/
- }
- case 54: break;
- case 20:
- { string.append('\\');
- }
- case 55: break;
- case 21:
- { string.append('\n');
- }
- case 56: break;
- case 22:
- { string.append('\f');
- }
- case 57: break;
- case 23:
- { string.append('\t');
- }
- case 58: break;
- case 24:
- { string.append('\r');
- }
- case 59: break;
- case 25:
- { string.append('\"');
- }
- case 60: break;
- case 26:
- { string.append('\b');
- }
- case 61: break;
- case 27:
- { string.append('\'');
- }
- case 62: break;
- case 28:
- { return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong(yytext().substring(2), 16));
- }
- case 63: break;
- case 29:
- { return new ParsedSymbol(SymbolGroup.GLOBALCONST, SymbolType.NULL, yytext());
- }
- case 64: break;
- case 30:
- { return new ParsedSymbol(SymbolGroup.KEYWORD, SymbolType.TRUE, yytext());
- }
- case 65: break;
- case 31:
- { char val = (char) Integer.parseInt(yytext().substring(1), 8);
- string.append(val);
- }
- case 66: break;
- case 32:
- { char val = (char) Integer.parseInt(yytext().substring(2), 16);
- string.append(val);
- }
- case 67: break;
- case 33:
- { return new ParsedSymbol(SymbolGroup.KEYWORD, SymbolType.FALSE, yytext());
- }
- case 68: break;
- case 34:
- { return new ParsedSymbol(SymbolGroup.UNKNOWN, SymbolType.UNKNOWN, yytext());
- }
- case 69: break;
- case 35:
- { return new ParsedSymbol(SymbolGroup.GLOBALCONST, SymbolType.UNDEFINED, yytext());
- }
- case 70: break;
- default:
- if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
- zzAtEOF = true;
- {
- return new ParsedSymbol(SymbolGroup.EOF, SymbolType.EOF, null);
- }
- }
- else {
- zzScanError(ZZ_NO_MATCH);
- }
- }
}
- }
-
}
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont2Tag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont2Tag.java
index 05bf32095..e976871e0 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont2Tag.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont2Tag.java
@@ -500,7 +500,7 @@ public class DefineFont2Tag extends FontTag {
pos = i;
break;
}
-
+
return false;
}
}
@@ -524,7 +524,7 @@ public class DefineFont2Tag extends FontTag {
getSwf().clearImageCache();
return true;
}
-
+
@Override
public void setAdvanceValues(Font font) {
boolean hasLayout = fontFlagsHasLayout;
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont3Tag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont3Tag.java
index 5f113c6de..504f87e89 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont3Tag.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont3Tag.java
@@ -485,7 +485,7 @@ public class DefineFont3Tag extends FontTag {
@Override
public boolean removeCharacter(char character) {
-
+
//Font Align Zones will be removed as removing character zones is not supported:-(
for (int i = 0; i < swf.getTags().size(); i++) {
Tag t = swf.getTags().get(i);
@@ -523,13 +523,13 @@ public class DefineFont3Tag extends FontTag {
}
shiftGlyphIndices(fontID, pos + 1, false);
-
+
checkWideParameters();
setModified(true);
getSwf().clearImageCache();
return true;
}
-
+
@Override
public void setAdvanceValues(Font font) {
boolean hasLayout = fontFlagsHasLayout;
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFontTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFontTag.java
index f7b79f8be..0d443c6b8 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFontTag.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFontTag.java
@@ -312,7 +312,7 @@ public class DefineFontTag extends FontTag {
if (fontInfoTag == null) {
return false;
}
-
+
int code = (int) character;
int pos = -1;
List