Package foundry.veil.api.glsl
Class GlslParser
java.lang.Object
foundry.veil.api.glsl.GlslParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GlslTree
static GlslNode
parseExpression
(GlslLexer.Token[] tokens) static GlslNode
parseExpression
(String input) parseExpressionList
(GlslLexer.Token[] tokens) parseExpressionList
(String input) static GlslTree
preprocessParse
(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:
GlslSyntaxException
LexerException
-
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
-