Reviewers: dcarney,
Message:
Committed patchset #1 manually as r17821 (presubmit successful).
Description:
Experimental lexer generator: fix build errors (type-limits).
[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=17821
Please review this at https://codereview.chromium.org/59673005/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser
Affected files (+9, -1 lines):
M tools/lexer_generator/code_generator.jinja
Index: tools/lexer_generator/code_generator.jinja
diff --git a/tools/lexer_generator/code_generator.jinja
b/tools/lexer_generator/code_generator.jinja
index
eb265a8f7e54352c9832499ff2eea335c26b38a2..1675355480c6454cd35be5bd8ab911c67bc4cf55
100644
--- a/tools/lexer_generator/code_generator.jinja
+++ b/tools/lexer_generator/code_generator.jinja
@@ -6,7 +6,15 @@
{%- for r in key.range_iter() -%}
{%- if not loop.first %} || {% endif -%}
{%- if r[0] == 'LATIN_1' -%}
- ({{r[1][0]}} <= yych && yych <= {{r[1][1]}})
+ {%- if r[1][0] == r[1][1] -%}
+ yych == {{r[1][0]}}
+ {%- elif r[1][0] == 0 -%}
+ yych <= {{r[1][1]}}
+ {%- elif r[1][1] == 255 -%}
+ yych >= {{r[1][0]}}
+ {%- else -%}
+ ({{r[1][0]}} <= yych && yych <= {{r[1][1]}})
+ {%- endif -%}
{%- else -%}
false
{%- endif -%}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.