Package org.sonar.php.parser
Class PHPParserBuilder
java.lang.Object
org.sonar.php.parser.PHPParserBuilder
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.sonar.sslr.api.typed.ActionParser<Tree>
static com.sonar.sslr.api.typed.ActionParser<Tree>
createParser
(org.sonar.sslr.grammar.GrammarRuleKey rootRule) This method should be used by tests only.static com.sonar.sslr.api.typed.ActionParser<Tree>
createParser
(org.sonar.sslr.grammar.GrammarRuleKey rootRule, int lineOffset) This method should be used if required to shift line of tokens
-
Method Details
-
createParser
-
createParser
public static com.sonar.sslr.api.typed.ActionParser<Tree> createParser(org.sonar.sslr.grammar.GrammarRuleKey rootRule) This method should be used by tests only. Provides ability to start parsing from some rule other than PHPLexicalGrammar.COMPILATION_UNIT.- Parameters:
rootRule
- rule from which parsing starts
-
createParser
public static com.sonar.sslr.api.typed.ActionParser<Tree> createParser(org.sonar.sslr.grammar.GrammarRuleKey rootRule, int lineOffset) This method should be used if required to shift line of tokens
-