mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 10:10:52 +00:00
code format fixes in lexerslexer fixes
This commit is contained in:
+6
-1
@@ -2901,6 +2901,7 @@ public final class Flasm3Lexer {
|
||||
|
||||
/**
|
||||
* Closes the input stream.
|
||||
* @throws java.io.IOException
|
||||
*/
|
||||
public final void yyclose() throws java.io.IOException {
|
||||
zzAtEOF = true; /* indicate end of file */
|
||||
@@ -2942,6 +2943,7 @@ public final class Flasm3Lexer {
|
||||
|
||||
/**
|
||||
* Returns the current lexical state.
|
||||
* @return
|
||||
*/
|
||||
public final int yystate() {
|
||||
return zzLexicalState;
|
||||
@@ -2958,6 +2960,7 @@ public final class Flasm3Lexer {
|
||||
|
||||
/**
|
||||
* Returns the text matched by the current regular expression.
|
||||
* @return
|
||||
*/
|
||||
public final String yytext() {
|
||||
return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
|
||||
@@ -2979,6 +2982,7 @@ public final class Flasm3Lexer {
|
||||
|
||||
/**
|
||||
* Returns the length of the matched text region.
|
||||
* @return
|
||||
*/
|
||||
public final int yylength() {
|
||||
return zzMarkedPos - zzStartRead;
|
||||
@@ -3030,6 +3034,7 @@ public final class Flasm3Lexer {
|
||||
*
|
||||
* @return the next token
|
||||
* @exception java.io.IOException if any I/O-Error occurs
|
||||
* @throws com.jpexs.decompiler.flash.abc.avm2.parser.AVM2ParseException
|
||||
*/
|
||||
public ParsedSymbol yylex() throws java.io.IOException, AVM2ParseException {
|
||||
int zzInput;
|
||||
@@ -3196,7 +3201,7 @@ public final class Flasm3Lexer {
|
||||
yybegin(PARAMETERS);
|
||||
// length also includes the trailing quote
|
||||
if (isMultiname) {
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_MULTINAME, new Long(multinameId));
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_MULTINAME, multinameId);
|
||||
} else {
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_STRING, string.toString());
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ ExceptionTarget = "exceptiontarget "{PositiveNumberLiteral}":"
|
||||
yybegin(PARAMETERS);
|
||||
// length also includes the trailing quote
|
||||
if (isMultiname){
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_MULTINAME, new Long(multinameId));
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_MULTINAME, multinameId);
|
||||
} else {
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_STRING, string.toString());
|
||||
}
|
||||
|
||||
+5
@@ -1169,6 +1169,7 @@ public final class ActionScriptLexer {
|
||||
|
||||
/**
|
||||
* Closes the input stream.
|
||||
* @throws java.io.IOException
|
||||
*/
|
||||
public final void yyclose() throws java.io.IOException {
|
||||
zzAtEOF = true; /* indicate end of file */
|
||||
@@ -1210,6 +1211,7 @@ public final class ActionScriptLexer {
|
||||
|
||||
/**
|
||||
* Returns the current lexical state.
|
||||
* @return
|
||||
*/
|
||||
public final int yystate() {
|
||||
return zzLexicalState;
|
||||
@@ -1226,6 +1228,7 @@ public final class ActionScriptLexer {
|
||||
|
||||
/**
|
||||
* Returns the text matched by the current regular expression.
|
||||
* @return
|
||||
*/
|
||||
public final String yytext() {
|
||||
return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
|
||||
@@ -1247,6 +1250,7 @@ public final class ActionScriptLexer {
|
||||
|
||||
/**
|
||||
* Returns the length of the matched text region.
|
||||
* @return
|
||||
*/
|
||||
public final int yylength() {
|
||||
return zzMarkedPos - zzStartRead;
|
||||
@@ -1298,6 +1302,7 @@ public final class ActionScriptLexer {
|
||||
*
|
||||
* @return the next token
|
||||
* @exception java.io.IOException if any I/O-Error occurs
|
||||
* @throws com.jpexs.decompiler.flash.abc.avm2.parser.AVM2ParseException
|
||||
*/
|
||||
public ParsedSymbol yylex() throws java.io.IOException, AVM2ParseException {
|
||||
int zzInput;
|
||||
|
||||
+7
-2
@@ -741,6 +741,7 @@ public final class MethodInfoLexer {
|
||||
|
||||
/**
|
||||
* Closes the input stream.
|
||||
* @throws java.io.IOException
|
||||
*/
|
||||
public final void yyclose() throws java.io.IOException {
|
||||
zzAtEOF = true; /* indicate end of file */
|
||||
@@ -782,6 +783,7 @@ public final class MethodInfoLexer {
|
||||
|
||||
/**
|
||||
* Returns the current lexical state.
|
||||
* @return
|
||||
*/
|
||||
public final int yystate() {
|
||||
return zzLexicalState;
|
||||
@@ -798,6 +800,7 @@ public final class MethodInfoLexer {
|
||||
|
||||
/**
|
||||
* Returns the text matched by the current regular expression.
|
||||
* @return
|
||||
*/
|
||||
public final String yytext() {
|
||||
return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
|
||||
@@ -819,6 +822,7 @@ public final class MethodInfoLexer {
|
||||
|
||||
/**
|
||||
* Returns the length of the matched text region.
|
||||
* @return
|
||||
*/
|
||||
public final int yylength() {
|
||||
return zzMarkedPos - zzStartRead;
|
||||
@@ -870,6 +874,7 @@ public final class MethodInfoLexer {
|
||||
*
|
||||
* @return the next token
|
||||
* @exception java.io.IOException if any I/O-Error occurs
|
||||
* @throws com.jpexs.decompiler.flash.abc.methodinfo_parser.MethodInfoParseException
|
||||
*/
|
||||
public ParsedSymbol yylex() throws java.io.IOException, MethodInfoParseException {
|
||||
int zzInput;
|
||||
@@ -1067,7 +1072,7 @@ public final class MethodInfoLexer {
|
||||
yybegin(YYINITIAL);
|
||||
// length also includes the trailing quote
|
||||
if (isMultiname) {
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_MULTINAME, new Long(multinameId));
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_MULTINAME, multinameId);
|
||||
} else {
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_STRING, string.toString());
|
||||
}
|
||||
@@ -1203,7 +1208,7 @@ public final class MethodInfoLexer {
|
||||
case 36: {
|
||||
String s = yytext();
|
||||
long ns = Long.parseLong(s.substring(3, s.length() - 2));
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_NAMESPACE, new Long(ns));
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_NAMESPACE, ns);
|
||||
}
|
||||
case 72:
|
||||
break;
|
||||
|
||||
+2
-2
@@ -129,7 +129,7 @@ StringCharacter = [^\r\n\"\\]
|
||||
{Namespace} {
|
||||
String s = yytext();
|
||||
long ns = Long.parseLong(s.substring(3, s.length() - 2));
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_NAMESPACE, new Long(ns));
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_NAMESPACE, ns);
|
||||
}
|
||||
true {return new ParsedSymbol(ParsedSymbol.TYPE_TRUE);}
|
||||
false {return new ParsedSymbol(ParsedSymbol.TYPE_FALSE);}
|
||||
@@ -144,7 +144,7 @@ StringCharacter = [^\r\n\"\\]
|
||||
yybegin(YYINITIAL);
|
||||
// length also includes the trailing quote
|
||||
if (isMultiname){
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_MULTINAME, new Long(multinameId));
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_MULTINAME, multinameId);
|
||||
} else {
|
||||
return new ParsedSymbol(ParsedSymbol.TYPE_STRING, string.toString());
|
||||
}
|
||||
|
||||
@@ -717,6 +717,7 @@ public final class FlasmLexer {
|
||||
|
||||
/**
|
||||
* Closes the input stream.
|
||||
* @throws java.io.IOException
|
||||
*/
|
||||
public final void yyclose() throws java.io.IOException {
|
||||
zzAtEOF = true; /* indicate end of file */
|
||||
@@ -758,6 +759,7 @@ public final class FlasmLexer {
|
||||
|
||||
/**
|
||||
* Returns the current lexical state.
|
||||
* @return
|
||||
*/
|
||||
public final int yystate() {
|
||||
return zzLexicalState;
|
||||
@@ -774,6 +776,7 @@ public final class FlasmLexer {
|
||||
|
||||
/**
|
||||
* Returns the text matched by the current regular expression.
|
||||
* @return
|
||||
*/
|
||||
public final String yytext() {
|
||||
return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
|
||||
@@ -795,6 +798,7 @@ public final class FlasmLexer {
|
||||
|
||||
/**
|
||||
* Returns the length of the matched text region.
|
||||
* @return
|
||||
*/
|
||||
public final int yylength() {
|
||||
return zzMarkedPos - zzStartRead;
|
||||
@@ -846,6 +850,7 @@ public final class FlasmLexer {
|
||||
*
|
||||
* @return the next token
|
||||
* @exception java.io.IOException if any I/O-Error occurs
|
||||
* @throws com.jpexs.decompiler.flash.action.parser.ActionParseException
|
||||
*/
|
||||
public ASMParsedSymbol yylex() throws java.io.IOException, ActionParseException {
|
||||
int zzInput;
|
||||
|
||||
+5
@@ -1396,6 +1396,7 @@ public final class ActionScriptLexer {
|
||||
|
||||
/**
|
||||
* Closes the input stream.
|
||||
* @throws java.io.IOException
|
||||
*/
|
||||
public final void yyclose() throws java.io.IOException {
|
||||
zzAtEOF = true; /* indicate end of file */
|
||||
@@ -1437,6 +1438,7 @@ public final class ActionScriptLexer {
|
||||
|
||||
/**
|
||||
* Returns the current lexical state.
|
||||
* @return
|
||||
*/
|
||||
public final int yystate() {
|
||||
return zzLexicalState;
|
||||
@@ -1453,6 +1455,7 @@ public final class ActionScriptLexer {
|
||||
|
||||
/**
|
||||
* Returns the text matched by the current regular expression.
|
||||
* @return
|
||||
*/
|
||||
public final String yytext() {
|
||||
return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
|
||||
@@ -1474,6 +1477,7 @@ public final class ActionScriptLexer {
|
||||
|
||||
/**
|
||||
* Returns the length of the matched text region.
|
||||
* @return
|
||||
*/
|
||||
public final int yylength() {
|
||||
return zzMarkedPos - zzStartRead;
|
||||
@@ -1525,6 +1529,7 @@ public final class ActionScriptLexer {
|
||||
*
|
||||
* @return the next token
|
||||
* @exception java.io.IOException if any I/O-Error occurs
|
||||
* @throws com.jpexs.decompiler.flash.action.parser.ActionParseException
|
||||
*/
|
||||
public ParsedSymbol yylex() throws java.io.IOException, ActionParseException {
|
||||
int zzInput;
|
||||
|
||||
@@ -411,6 +411,7 @@ public final class TextLexer {
|
||||
|
||||
/**
|
||||
* Closes the input stream.
|
||||
* @throws java.io.IOException
|
||||
*/
|
||||
public final void yyclose() throws java.io.IOException {
|
||||
zzAtEOF = true; /* indicate end of file */
|
||||
@@ -452,6 +453,7 @@ public final class TextLexer {
|
||||
|
||||
/**
|
||||
* Returns the current lexical state.
|
||||
* @return
|
||||
*/
|
||||
public final int yystate() {
|
||||
return zzLexicalState;
|
||||
@@ -468,6 +470,7 @@ public final class TextLexer {
|
||||
|
||||
/**
|
||||
* Returns the text matched by the current regular expression.
|
||||
* @return
|
||||
*/
|
||||
public final String yytext() {
|
||||
return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
|
||||
@@ -489,6 +492,7 @@ public final class TextLexer {
|
||||
|
||||
/**
|
||||
* Returns the length of the matched text region.
|
||||
* @return
|
||||
*/
|
||||
public final int yylength() {
|
||||
return zzMarkedPos - zzStartRead;
|
||||
@@ -540,6 +544,7 @@ public final class TextLexer {
|
||||
*
|
||||
* @return the next token
|
||||
* @exception java.io.IOException if any I/O-Error occurs
|
||||
* @throws com.jpexs.decompiler.flash.tags.text.TextParseException
|
||||
*/
|
||||
public ParsedSymbol yylex() throws java.io.IOException, TextParseException {
|
||||
int zzInput;
|
||||
|
||||
+5
@@ -411,6 +411,7 @@ public final class ConditionLexer {
|
||||
|
||||
/**
|
||||
* Closes the input stream.
|
||||
* @throws java.io.IOException
|
||||
*/
|
||||
public final void yyclose() throws java.io.IOException {
|
||||
zzAtEOF = true; /* indicate end of file */
|
||||
@@ -452,6 +453,7 @@ public final class ConditionLexer {
|
||||
|
||||
/**
|
||||
* Returns the current lexical state.
|
||||
* @return
|
||||
*/
|
||||
public final int yystate() {
|
||||
return zzLexicalState;
|
||||
@@ -468,6 +470,7 @@ public final class ConditionLexer {
|
||||
|
||||
/**
|
||||
* Returns the text matched by the current regular expression.
|
||||
* @return
|
||||
*/
|
||||
public final String yytext() {
|
||||
return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
|
||||
@@ -489,6 +492,7 @@ public final class ConditionLexer {
|
||||
|
||||
/**
|
||||
* Returns the length of the matched text region.
|
||||
* @return
|
||||
*/
|
||||
public final int yylength() {
|
||||
return zzMarkedPos - zzStartRead;
|
||||
@@ -540,6 +544,7 @@ public final class ConditionLexer {
|
||||
*
|
||||
* @return the next token
|
||||
* @exception java.io.IOException if any I/O-Error occurs
|
||||
* @throws com.jpexs.decompiler.flash.types.annotations.parser.AnnotationParseException
|
||||
*/
|
||||
public ConditionToken yylex() throws java.io.IOException, AnnotationParseException {
|
||||
int zzInput;
|
||||
|
||||
Reference in New Issue
Block a user