From: handa Date: Fri, 18 Sep 2009 00:11:53 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=773db3df0debc60901f68cb8d97e59f2a314cdde;p=m17n%2Fm17n-lib-cs.git *** empty log message *** --- diff --git a/xex.txt b/xex.txt index 5e58f74..4a36efe 100644 --- a/xex.txt +++ b/xex.txt @@ -60,18 +60,16 @@ FUNCALL = | '<' PREDEFINED-FUNC-SYMBOL '>' TERM * '' PREDEFINED-FUNC-SYMBOL = - 'set' - | 'and' | 'or' | 'not' - | 'lt' | 'le' | 'eq' | 'ge' | 'gt' - | 'noteq' - | 'add' | 'sub' | 'mul' | 'div' | 'mod' - | 'add-set' | 'sub-set' | 'mul-set' | 'div-set' | 'mod-set' - | 'logand' | 'logior' | 'logxor' | 'lsh' - | 'logand-set' | 'logior-set' | 'logxor-set' | 'lsh-set' - | 'append' | 'concat' | 'nth' | 'copy' | 'ins' | 'del' - | 'progn' | 'if' | 'when' | 'cond' - | 'while' | 'for' | 'foreach' - | 'eval' | 'type' + SET + | AND | OR | NOT + | LT | LE | EQ | GE | GT + | NOTEQ + | ADD | SUB | MUL | DIV | MOD + | LOGAND | LOGIOR | LOGXOR | LSH + | APPEND | CONCAT | NTH | COPY | INS | DEL + | PROGN | IF | WHEN | COND + | WHILE | FOR | FOREACH + | EVAL | TYPE PREDEFINED-FUNC-NAME = PREDEFINED-FUNC-SYMBOL @@ -95,3 +93,27 @@ FALSE = ;; LIST is evaluated to itself. ;; VAR is evaluated to TERM that is set to that variable. ;; FUNCALL is evaluated to TERM returned by that function. + +SET = + '' TERM '' +;; Set the variable of name VARNAME to TERM. + +AND = ;; arguments unevalled + ' TERM ... +OR (unevalled-arg ...) = + ' TERM ... +NOT (arg) = + ' TERM + +LT (arg ...) = + '' TERM ... '' + + | 'and' | 'or' | 'not' + | 'lt' | 'le' | 'eq' | 'ge' | 'gt' + | 'noteq' + | 'add' | 'sub' | 'mul' | 'div' | 'mod' + | 'logand' | 'logior' | 'logxor' | 'lsh' + | 'append' | 'concat' | 'nth' | 'copy' | 'ins' | 'del' + | 'progn' | 'if' | 'when' | 'cond' + | 'while' | 'for' | 'foreach' + | 'eval' | 'type'