/** * @param parser the {@link AbstractParser} instance * @deprecated clients should invoke {@link #lexer(Monitor, DerivedPrsStream)} */ @Deprecated public void lexToTokens(Monitor monitor, AbstractParser parser) { lexer(monitor, parser.getIPrsStream()); }
/** * @param parser the {@link AbstractParser} instance * @deprecated clients should invoke {@link #lexer(Monitor, DerivedPrsStream)} */ @Deprecated public void lexToTokens(Monitor monitor, AbstractParser parser) { lexer(monitor, parser.getIPrsStream()); }
/** * Construct an OCL semantic analyzer with default syntactic and lexical * parsers all operating within a given environment. Then prime the analyzer * by performing keyword and lexical parsing of the given source text. * * @param environment * the symbolic and problem handling environment * @param text * the source text for analysis */ public OCLAnalyzer( Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> environment, String text) { this(new OCLParser(new OCLLexer(environment, text.toCharArray()))); getLexer().lexer(getAbstractParser().getIPrsStream()); }
/** * Construct an OCL semantic analyzer with default syntactic and lexical * parsers all operating within a given environment. Then prime the analyzer * by performing keyword and lexical parsing of the given source text. * * @param environment * the symbolic and problem handling environment * @param text * the source text for analysis */ public OCLAnalyzer( Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> environment, String text) { this(new OCLParser(new OCLLexer(environment, text.toCharArray()))); getLexer().lexer(getAbstractParser().getIPrsStream()); }