[Mesa-dev] [PATCH 0/4] glsl: Precise location positions for ast_node.

Sir Anthony anthony at adsorbtion.org
Wed Feb 5 07:18:07 PST 2014


These patches changes the ast_node location holding by adding tokens 
end position and assignment of it along with previously tracked start 
position. Bison rules was updated to set appropriate tokens locations 
instead of yylloc. 

Sir Anthony (4):
  glsl: Update lexers in glsl and glcpp to hande end position of token.
  glsl: Extend ast location structure to hande end token position.
  glsl: Add ast_node method to set location range.
  glsl: Change locations from yylloc to appropriate tokens positions.

 src/glsl/ast.h                  |  36 +++++--
 src/glsl/glcpp/glcpp-lex.l      |   3 +-
 src/glsl/glsl_lexer.ll          |   3 +-
 src/glsl/glsl_parser.yy         | 215 +++++++++++++++++++++-------------------
 src/glsl/glsl_parser_extras.cpp |   6 +-
 5 files changed, 149 insertions(+), 114 deletions(-)

-- 
1.8.3.2



More information about the mesa-dev mailing list