Search in sources :

Example 1 with NGAToString

use of priv.bajdcc.LALR1.syntax.stringify.NGAToString in project jMiniLang by bajdcc.

the class NGA method getNGAString.

/**
 * 非确定性文法自动机描述
 *
 * @param status
 *            NGA状态
 * @param prefix
 *            前缀
 * @return 描述
 */
public String getNGAString(NGAStatus status, String prefix) {
    NGAToString alg = new NGAToString(prefix);
    status.visit(alg);
    return alg.toString();
}
Also used : NGAToString(priv.bajdcc.LALR1.syntax.stringify.NGAToString)

Aggregations

NGAToString (priv.bajdcc.LALR1.syntax.stringify.NGAToString)1