1. 23 Sep, 2015 1 commit
    • Make preprocessor ExpressionParser only lex what it can parse · 3187a38e
      Olli Etuaho authored
      This cleans up ExpressionParser so that the lexer only consumes one extra
      token in case the parser finishes. The parser will also finish with
      YYACCEPT once it has parsed a complete expression. This will make the
      preprocessor to generate a more informative unexpected token error
      instead of a syntax error if there are extra tokens after #if.
      
      This will also enable reusing ExpressionParser for parsing expressions in
      line directives. The format for a line directive that specifies both line
      and file numbers is as follows:
      
       #if line-expression file_expression
      
      ExpressionParser will need to be run twice for each line: first to parse
      line-expression and then to parse file-expression. For that reason, it is
      essential that ExpressionParser for line-expression stops before
      consuming more than one token of file-expression.
      
      BUG=angleproject:989
      TEST=angle_unittests, dEQP-GLES3.functional.shaders.preprocessor.*
      
      Change-Id: I0bb92f733c18891eeddbc61e7c5bebdf1003559a
      Reviewed-on: https://chromium-review.googlesource.com/300962Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
      Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
      Tryjob-Request: Olli Etuaho <oetuaho@nvidia.com>
  2. 22 Sep, 2015 7 commits
  3. 21 Sep, 2015 1 commit
  4. 17 Sep, 2015 2 commits
  5. 16 Sep, 2015 9 commits
  6. 15 Sep, 2015 3 commits
  7. 14 Sep, 2015 12 commits
  8. 11 Sep, 2015 5 commits