Rhys Weatherley
443be8eea6
Create AST nodes for qualified GLSL types
2010-11-15 15:02:21 +10:00
Rhys Weatherley
1f8f99df28
Build AST nodes from within the parser.
2010-11-12 14:04:09 +10:00
Rhys Weatherley
73f77a0b8e
Making GLSL AST nodes while preserving lineno info
...
Eventually we will need some way to locate an identifier's
definition, so add "lineno" to each AST node. May want to
change this to "position" later. The makeAstNode<T>() function
takes care of automatically decorating nodes with line numbers.
2010-11-12 09:57:05 +10:00
Rhys Weatherley
73d570c83a
Convert GLSL AST nodes into managed types
2010-11-12 09:29:50 +10:00
Roberto Raggi
c3b821a0d3
Handle parenthesized expressions.
2010-11-11 15:43:16 +01:00
Roberto Raggi
b311703234
Create AST nodes for multiplicative expressions.
2010-11-11 15:25:19 +01:00
Roberto Raggi
701ff3887d
There's nothing to do for the chain rules.
2010-11-11 15:21:27 +01:00
Roberto Raggi
53218ff7c7
Introduced a simple memory pool.
2010-11-11 15:07:30 +01:00
Roberto Raggi
06df2e2d29
Use only interned (unique) strings.
2010-11-11 15:07:30 +01:00
Roberto Raggi
ca4439bcef
Get rid of glsl.g.in and start working on the semantic actions.
2010-11-11 12:22:58 +01:00
Roberto Raggi
b0622d840b
Include stdio and regenerated the parser.
2010-11-10 16:30:35 +01:00
Roberto Raggi
959edbe10b
Introduced a simple incremental lexer for GLSL.
2010-11-10 15:57:39 +01:00
Roberto Raggi
bc70a68817
Imported our new GLSL front-end.
2010-11-10 15:46:41 +01:00