code format fixes in lexers

This commit is contained in:
2014-11-30 00:18:35 +01:00
parent 094ecd15e3
commit 825e50a4ef
10 changed files with 865 additions and 856 deletions
@@ -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
@@ -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 {
@@ -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);