diff options
author | Adrian Thurston <thurston@colm.net> | 2018-05-14 20:45:53 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-05-14 20:45:53 -0400 |
commit | bd0042d9fa75bd7c2c638a747fc7ab03601e859c (patch) | |
tree | 2275f1791ae2a9c86586be7e2266bbd2a8cd85f5 /src/tree.c | |
parent | fbc356e504c162663b33162225ebd2fc16b6076b (diff) | |
download | colm-bd0042d9fa75bd7c2c638a747fc7ab03601e859c.tar.gz |
don't use parse finish to pull out parse result, use dedeicated instruction
Working towards unifying the parse frag and parse finish instructions.
Diffstat (limited to 'src/tree.c')
-rw-r--r-- | src/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1435,7 +1435,8 @@ tree_t *get_parser_mem( parser_t *parser, word_t field ) tree_t *result = 0; switch ( field ) { case 0: { - result = parser->result; + tree_t *tree = get_parsed_root( parser->pda_run, parser->pda_run->stop_target > 0 ); + result = tree; break; } case 1: { |