On 06/28/2011 02:48 PM, Dan McCabe wrote: > We now tie the grammar to the ctors of the ASTs they reference. > > This requires that we actually have definitions of the ctors. > > In addition, we also need to define "print" and "hir" methods for the AST > classes. The Print methods are pretty simple to flesh out. However, at this > stage of the development, we simply stub out the "hir" methods and flesh > them out later. > > Also, since actual class instances get returned by the productions in the > grammar, we also need to designate the type of the productions that > reference those instances. > --- > src/glsl/ast_to_hir.cpp | 54 +++++++++++++++++++++ > src/glsl/glsl_parser.yy | 55 +++++++++++++++------ > src/glsl/glsl_parser_extras.cpp | 100 > +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 193 insertions(+), 16 deletions(-)
Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev