Skip to content
Snippets Groups Projects
Commit 256e0277 authored by Alexis Nasr's avatar Alexis Nasr
Browse files

added movement ignore

parent e12305ce
No related branches found
No related tags found
No related merge requests found
......@@ -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; */
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment