Package org.intellij.grammar.generator
Class ParserGenerator
java.lang.Object
org.intellij.grammar.generator.ParserGenerator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParserGenerator(@NotNull BnfFile psiFile, @NotNull String sourcePath, @NotNull String outputPath, @NotNull String packagePrefix) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWarning(String text) voidgenerate()static @NotNull org.intellij.grammar.generator.NodeCalls.NodeCallgenerateConsumeTextToken(@NotNull org.intellij.grammar.generator.ParserGeneratorUtil.ConsumeType consumeType, @NotNull String tokenText) generateFirstCheck(BnfRule rule, String frameName, boolean skipIfOne) voidvoidgenerateParser(String parserClass, Collection<String> ownRuleNames) voidnewLine()protected PrintWriteropenOutputInner(String className, File file) voidvoid@NotNull String
-
Field Details
-
LOG
public static final com.intellij.openapi.diagnostic.Logger LOG
-
-
Constructor Details
-
ParserGenerator
-
-
Method Details
-
addWarning
-
openOutputInner
- Throws:
IOException
-
out
-
out
-
newLine
public void newLine() -
shorten
-
generate
- Throws:
IOException
-
generateParser
- Throws:
IOException
-
generateParser
-
generateFirstCheck
-
generateConsumeTextToken
@NotNull public static @NotNull org.intellij.grammar.generator.NodeCalls.NodeCall generateConsumeTextToken(@NotNull @NotNull org.intellij.grammar.generator.ParserGeneratorUtil.ConsumeType consumeType, @NotNull @NotNull String tokenText) -
getRuleMethodTypesToImport
-