_ast = y_tab.yyparse(t_def.AST)
#element.serialize(_ast, 'a.xml', 'utf-8')
#_ast = element.deserialize('a.xml', t_def.factory, 'utf-8')
- _ast.post_process(python)
+ _ast.post_process()
#element.serialize(_ast, 'b.xml', 'utf-8')
#_ast = element.deserialize('b.xml', t_def.factory, 'utf-8')
(generate_py if python else generate_flex)(
# at this point len(yy_state_buf) == number of chars scanned
i = len(yy_state_buf) - len(match)
if i:
- match += block.text[block_pos - i:]
+ match += block.text[block_pos - i:block_pos]
+ assert len(match) == len(yy_state_buf)
# advance past exhausted block, maintaining invariant
block_prev = block
# at this point yy_state_ptr == number of chars scanned
i = yy_state_ptr - len(match)
if i:
- match += block.text[block_pos - i:]
+ match += block.text[block_pos - i:block_pos]
+ assert len(match) = yy_state_ptr
# yy_find_action:
# the following variables are used to handle trailing context
else:
i = match_len - len(match)
if i:
- match += block.text[block_pos - i:]
+ match += block.text[block_pos - i:block_pos]
+ assert len(match) == match_len
block_prev = block
block = block_prev.next
if block is not None:
i = match_len - len(match)
if i:
assert block is not None
- match += block.text[block_pos - i:]
+ match += block.text[block_pos - i:block_pos]
+ assert len(match) == match_len
for i in yy_dfa_states[state][2]:
yy_group_text = match
else:
i = match_len - len(match)
if i:
- match += block.text[block_pos - i:]
+ match += block.text[block_pos - i:block_pos]
+ assert len(match) == match_len
block_prev = block
block = block_prev.next
if block is not None:
i = match_len - len(match)
if i:
assert block is not None
- match += block.text[block_pos - i:]
+ match += block.text[block_pos - i:block_pos]
+ assert len(match) == match_len
for i in yy_dfa_states[state][2]:
yy_group_text = match