]> granicus.if.org Git - re2c/commit
Lexer: unified token length calculation.
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 14 Aug 2015 12:57:58 +0000 (13:57 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 14 Aug 2015 12:57:58 +0000 (13:57 +0100)
commit48c067251c0554a961938ac018147042ae2fff3d
tree677c9a8e71cc61bf137c48cecd015a8b1692f484
parent7af5d437e49878ea4e8de73a02d99ad4e5751933
Lexer: unified token length calculation.

Token length equals the difference between two pointers: YYCURSOR
value on the moment of successful match and YYCURSOR value when
entering DFA. This difference should be nonnegative and fit buffer
size.
re2c/bootstrap/src/parse/scanner_lex.cc
re2c/src/codegen/output.cc
re2c/src/codegen/output.h
re2c/src/parse/scanner.h
re2c/src/parse/scanner_lex.re