Package org.eclipse.php.internal.core.compiler.ast.parser.php5

Examples of org.eclipse.php.internal.core.compiler.ast.parser.php5.CompilerAstLexer


  }

  private AstLexer getLexer(Reader reader) throws Exception {
    AstLexer result = null;
    if (PHPVersion.PHP5.equals(phpVersion)) {
      result = new CompilerAstLexer(reader);
      ((CompilerAstLexer) result).setAST(new AST(reader, PHPVersion.PHP5,
          false, useShortTags));
      stInScriptin = CompilerAstLexer.ST_IN_SCRIPTING; // save the initial
      // state for reset
      // operation
View Full Code Here


   * @param str
   * @throws Exception
   */
  public void parseAndTest(Reader reader, String declarationName, String str,
      boolean positiveTest) throws Exception {
    IModuleDeclaration program = new PhpSourceParser().parse(reader, null,
        ProjectOptions.useShortTags((IProject) null));
    DeclarationSearcher searcher = new DeclarationSearcher(declarationName);
    ((PHPModuleDeclaration) program).traverse(searcher);
    Declaration declaration = searcher.getResult();

View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.compiler.ast.parser.php5.CompilerAstLexer

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.