]> sourceware.org Git - systemtap.git/commit
PR11207 groundwork: lexer::scan() produces tok_junk instead of throwing errors.
authorSerguei Makarov <smakarov@redhat.com>
Mon, 23 Jul 2012 16:30:46 +0000 (12:30 -0400)
committerSerguei Makarov <smakarov@redhat.com>
Mon, 23 Jul 2012 16:30:46 +0000 (12:30 -0400)
commit16fc963fb861ac3ebbd83fd99076333aadb01ba1
tree14eafc5adcd909eb70bc4cb678dae10f6dcd69e8
parent2524d1fdc208f4cc8e3672a8b8d29af39eaea735
PR11207 groundwork: lexer::scan() produces tok_junk instead of throwing errors.

Handling parse_errors at scan time would get too complicated when there's
a preprocessing stage between the lexer and parser (and it's no longer
clear whether a given token will be used). Hence we produce specially marked
tok_junk which store a message to use when the token is encountered at
print_error() time.
parse.cxx
parse.h
This page took 0.029641 seconds and 5 git commands to generate.