mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 15:20:47 +00:00
code format fixes in lexers
This commit is contained in:
@@ -37,7 +37,7 @@ import com.jpexs.decompiler.flash.ecma.Undefined;
|
||||
|
||||
%{
|
||||
|
||||
StringBuffer string = new StringBuffer();
|
||||
StringBuffer string = new StringBuffer();
|
||||
|
||||
/**
|
||||
* Create an empty lexer, yyrset will be called later to reset and assign
|
||||
|
||||
+2
@@ -1260,6 +1260,7 @@ public final class ActionScriptLexer {
|
||||
public int yyline() {
|
||||
return yyline + 1;
|
||||
}
|
||||
|
||||
private final List<LexListener> listeners = new ArrayList<>();
|
||||
|
||||
public void addListener(LexListener listener) {
|
||||
@@ -1287,6 +1288,7 @@ public final class ActionScriptLexer {
|
||||
last = null;
|
||||
informListenersPushBack(symb);
|
||||
}
|
||||
|
||||
ParsedSymbol last;
|
||||
|
||||
public ParsedSymbol lex() throws java.io.IOException, ActionParseException {
|
||||
|
||||
+4
-2
@@ -45,6 +45,7 @@ import java.util.Stack;
|
||||
public int yyline() {
|
||||
return yyline + 1;
|
||||
}
|
||||
|
||||
private final List<LexListener> listeners = new ArrayList<>();
|
||||
|
||||
public void addListener(LexListener listener){
|
||||
@@ -72,12 +73,13 @@ import java.util.Stack;
|
||||
last = null;
|
||||
informListenersPushBack(symb);
|
||||
}
|
||||
|
||||
ParsedSymbol last;
|
||||
public ParsedSymbol lex() throws java.io.IOException, ActionParseException{
|
||||
ParsedSymbol ret = null;
|
||||
if(!pushedBack.isEmpty()){
|
||||
if (!pushedBack.isEmpty()){
|
||||
ret = last = pushedBack.pop();
|
||||
}else{
|
||||
} else {
|
||||
ret = last = yylex();
|
||||
}
|
||||
informListenersLex(ret);
|
||||
|
||||
Reference in New Issue
Block a user