summaryrefslogtreecommitdiffstats
path: root/src/gram.y
diff options
context:
space:
mode:
authorAndrés M <andmarti1424@users.noreply.github.com>2021-03-07 11:44:24 -0300
committerGitHub <noreply@github.com>2021-03-07 11:44:24 -0300
commitf942458ecfbb8014146af1825311adb1b1cbfec1 (patch)
tree79cb2c602048c563409f18a7bff2a1fc9761e312 /src/gram.y
parenta2dd8aa00b87f40a678c8e7ff04cd6178693d77a (diff)
parentfbba833dbb2dc65d41c8275d73ee2ca1cf9c6ddb (diff)
Merge pull request #390 from mipmip/pr-yacc-morescriptcommands
Pr yacc morescriptcommands
Diffstat (limited to 'src/gram.y')
-rwxr-xr-xsrc/gram.y13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gram.y b/src/gram.y
index c8633af..4ec599a 100755
--- a/src/gram.y
+++ b/src/gram.y
@@ -90,9 +90,9 @@ int yylex();
/*
token S_INSERTCOL
token S_OPENCOL
-token S_DELETECOL
token S_YANKCOL
*/
+%token S_DELETECOL
%token S_DATEFMT
%token S_SUBTOTAL
%token S_RSUBTOTAL
@@ -163,7 +163,9 @@ token S_YANKCOL
token S_SELECT
token S_INSERTROW
token S_OPENROW
- token S_DELETEROW
+*/
+%token S_DELETEROW
+/*
token S_YANKROW
token S_PULL
token S_PULLMERGE
@@ -185,6 +187,7 @@ token S_YANKCOL
token S_PLUGIN
token S_PLUGOUT
*/
+%token S_VALUEIZEALL
%token S_SHIFT
%token S_GETNUM
%token S_GETSTRING
@@ -479,6 +482,11 @@ command:
| S_SHOW COL { show_col($2, 1); } // show de una unica columna
| S_SHOW NUMBER { show_row($2, 1); } // show de una unica fila
+/* more scripting commands */
+ | S_DELETECOL COL { deletecol($2, 1); }
+ | S_DELETEROW NUMBER { deleterow($2, 1); }
+
+
/* agregados para scim */
| S_HIDECOL COL {
hide_col($2, 1); } // hide de una unica columna
@@ -517,6 +525,7 @@ command:
currow = r < currow ? r : r < currow + arg ? currow : r - arg;
}
+ | S_VALUEIZEALL { valueize_area(0, 0, maxrow, maxcol); }
| S_SHIFT var_or_range STRING {
if (strlen($3) != 1 || ($3[0] != 'h' && $3[0] != 'j' && $3[0] != 'k' && $3[0] != 'l')) {
sc_error("wrong parameter for shift command");