gix several bug in parser_core.c (and add ast_stack_right() function)