diff --git a/maca_trans_parser/src/movements.c b/maca_trans_parser/src/movements.c index 6c2f280bf3d0379f87715c3bdd3e56b3d817a275..ae0c06c4d966bdf1f43b80ec802e9023a0b2b36e 100644 --- a/maca_trans_parser/src/movements.c +++ b/maca_trans_parser/src/movements.c @@ -81,6 +81,14 @@ int movement_right_arc_undo(config *c) return 1; } +int movement_ignore(config *c, int movement_code) +{ + if(word_buffer_end(config_get_buffer(c))) return 0; + config_push_mvt(c, movement_code, b0, NULL); + word_buffer_move_right(config_get_buffer(c)); + return 1; +} + int movement_shift(config *c, int movement_code) { /* if(word_buffer_is_empty(config_get_buffer(c))) return 0; */ diff --git a/maca_trans_parser/src/movements.h b/maca_trans_parser/src/movements.h index 9d8adf55ff082cecf9cf32609b12e84372c19991..93bd47c4f184ff71aad51a7e209c2bdb1f7ab74b 100644 --- a/maca_trans_parser/src/movements.h +++ b/maca_trans_parser/src/movements.h @@ -12,6 +12,7 @@ int movement_left_arc(config *c, int movement_code, int label); int movement_left_arc_undo(config *c); int movement_right_arc(config *c, int movement_code, int label); int movement_right_arc_undo(config *c); +int movement_ignore(config *c, int movement_code); int movement_shift(config *c, int movement_code); int movement_shift_undo(config *c); int movement_reduce(config *c, int movement_code);