Class GlslParser
java.lang.Object
io.github.ocelot.glslprocessor.api.GlslParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GlslTreestatic GlslNodeparseExpression(GlslLexer.Token[] tokens) static GlslNodeparseExpression(String input) parseExpressionList(GlslLexer.Token[] tokens) parseExpressionList(String input) static GlslTreepreprocessParse(String input, Map<String, String> macros) Runs the C preprocessor on the specified source before passing it off to the parser.
-
Constructor Details
-
GlslParser
public GlslParser()
-
-
Method Details
-
preprocessParse
public static GlslTree preprocessParse(String input, Map<String, String> macros) throws GlslSyntaxException, LexerExceptionRuns the C preprocessor on the specified source before passing it off to the parser.- Parameters:
input- The source code inputmacros- All macros to evaluate during pre-processing- Returns:
- Throws:
GlslSyntaxExceptionLexerException
-
parse
- Throws:
GlslSyntaxException
-
parseExpression
- Throws:
GlslSyntaxException
-
parseExpression
- Throws:
GlslSyntaxException
-
parseExpressionList
- Throws:
GlslSyntaxException
-
parseExpressionList
public static List<GlslNode> parseExpressionList(GlslLexer.Token[] tokens) throws GlslSyntaxException - Throws:
GlslSyntaxException
-