Skip to content

Commit

Permalink
Change abbreviations for IF and INPUT, requested by Vitoco.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Feb 19, 2018
1 parent 320cdaf commit 49ad40e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ Control Statements


**Conditional execution**
**IF _condition_ THEN _statement_ / IF T.**
**IF _condition_ THEN _statement_ / I. T.**
**IF _condition_**
**ELIF _condition_ / ELI.**
**ELSE / E.**
Expand Down Expand Up @@ -984,7 +984,7 @@ Device Input and Output Statements
the error value.

**Input variable or string from file**
**INPUT #_iochn_, _var_ / I.**
**INPUT #_iochn_, _var_ / IN.**

Reads a line from channel _iochn_ and
stores to _var_.
Expand Down
4 changes: 2 additions & 2 deletions src/basic.syn
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ PARSE_LINE_COMMAND:
"." E_REM
"?" IO_CHAN_OPT PRINT_EXPR
"PRint" IO_CHAN_OPT PRINT_EXPR
"Input" INPUT_STR INPUT_VAR_LIST emit TOK_IOCHN0
"INput" INPUT_STR INPUT_VAR_LIST emit TOK_IOCHN0
"GEt" GETK_EXPR
"GEt" IO_CHAN_COMMA GET_EXPR
"PUt" IO_CHAN_OPT EXPR emit TOK_PUT
Expand All @@ -519,7 +519,7 @@ PARSE_LINE_COMMAND:
"Until" FORCE_BOOL_EXPR emit TOK_CJUMP E_POP_REPEAT
"While" emit LT_WHILE_1 E_PUSH_LT FORCE_BOOL_EXPR emit TOK_CJUMP emit LT_WHILE_2 E_PUSH_LT
"WEnd" emit TOK_JUMP E_POP_WHILE
"IF" FORCE_BOOL_EXPR emit TOK_CJUMP emit LT_IF E_PUSH_LT THEN_OR_MULTILINE
"If" FORCE_BOOL_EXPR emit TOK_CJUMP emit LT_IF E_PUSH_LT THEN_OR_MULTILINE
"For" VAR_WORD_LVALUE EQUAL EXPR emit TOK_FOR_START "TO" EXPR STEP_OPTIONAL emit TOK_FOR emit TOK_L_NOT emit TOK_CJUMP emit LT_FOR_2 E_PUSH_LT emit LT_FOR_1 E_PUSH_LT
"Next" emit TOK_FOR_NEXT emit TOK_CJUMP NEXT_VARNAME E_POP_FOR emit TOK_FOR_EXIT
"Else" emit TOK_JUMP E_ELSE
Expand Down

0 comments on commit 49ad40e

Please sign in to comment.