com.github.uscexp.grappa.extension.interpreter.ProcessStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grappa.extension Show documentation
Show all versions of grappa.extension Show documentation
Extension for parboiled/grappa parser.
/*
* Copyright (C) 2014 by haui - all rights reserved
*/
package com.github.uscexp.grappa.extension.interpreter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import com.github.uscexp.grappa.extension.nodes.AstTreeNode;
/**
* VariableStore for a process.
*
* @author haui
*
*/
public final class ProcessStore {
private static Map> instances = new HashMap<>();
public static short OK_STATE = 0;
public static short BREAK_STATE = 1;
public static short CONT_STATE = 2;
private short execState = OK_STATE;
/** globale variables. */
private Map