Package it.halfone.parser.event

Examples of it.halfone.parser.event.LateralStepEvent


            }
            if (succSymbol.getType() == Type.CHECK_IN || succSymbol.getType() == Type.CHECK_OUT) {
              eventList.add(new CheckEvent(succSymbol.getType() == Type.CHECK_IN));
            }
            if (succSymbol.getType() == Type.CLOSED_SELF_START || succSymbol.getType() == Type.CLOSED_SELF_END) {
              eventList.add(new LateralStepEvent(closedSelfIdMap.get(succ)));
            }
            if (Symbol.isStackRelated(succSymbol.getType())) {
              String minDepth = "";
              String maxDepth = "";
              switch (succSymbol.getType()) {
              case PUSH:
                minDepth = "1";
                maxDepth = "1";
                break;
              case POP:
                minDepth = "-1";
                maxDepth = "-1";
                break;
              case INFINI_PUSH:
                minDepth = "1";
                maxDepth = "+I";
                eventList.add(new LateralStepEvent(infiniLateralStackMap.get(succ)));
                break;
              case INFINI_POP:
                minDepth = "-I";
                maxDepth = "-1";
                eventList.add(new LateralStepEvent(infiniLateralStackMap.get(succ)));
                break;
              }
              eventList.add(new ChangeDepthEvent(minDepth, maxDepth));
            }
            if ((Symbol.isMetaSymbol(succSymbol.getType()) == false) || succ == symbolList.size() - 1) {
View Full Code Here

TOP

Related Classes of it.halfone.parser.event.LateralStepEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.