Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct { Left string `@Ident` Equals string `@"="` Expr *Expr `@@` Semi string `@";"` }
Assignment is an assignment statement.
type BlockStmt ¶
type BlockStmt struct {
Stmts []*Stmt `"{" @@* "}"`
}
BlockStmt is a block of statements enclosed in braces.
type Declaration ¶
type Declaration struct { UniformDecl *UniformDecl `@@` FunctionDecl *FunctionDecl `| @@` }
Declaration is a top-level declaration.
type File ¶
type File struct { Pos lexer.Position Declarations []*Declaration `@@*` }
File is the root of a parsed .gdshader file.
type FuncCall ¶
type FuncCall struct { FuncName string `@Ident` LParen string `@"("` Args []string `@Ident ("," @Ident)*` RParen string `@")"` }
FuncCall is a function call exporession.
type FunctionDecl ¶
type FunctionDecl struct { ReturnType string `@Ident` Name string `@Ident "(" ")"` Body *BlockStmt `@@` }
FunctionDecl is a function declaration.
type UniformDecl ¶
UniformDecl is a uniform variable declaration.
Click to show internal directories.
Click to hide internal directories.