[Mesa-dev] [PATCH 4/5] glsl: Reference data structure ctors in grammar

Kenneth Graunke kenneth at whitecape.org
Wed Jun 29 12:54:05 PDT 2011


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 <kenneth at whitecape.org>



More information about the mesa-dev mailing list