canna****@lists*****
canna****@lists*****
2003年 8月 7日 (木) 22:19:27 JST
Date: Thursday August 7, 2003 @ 22:19 Author: aida_s Update of /cvsroot/canna/canna/lib/RKC In directory sf-cvs:/tmp/cvs-serv11384/lib/RKC Modified Files: conf.c confP.h Log Message: Implement C-like expressions evaluator for rkc.conf. * RKCCONF.jp: updated * lib/RKC/conf.c(match_operator1): added (match_operator2): added (Lexer_next): process operators, add postfix_op flag (op_dump): added for debug (Token_dump): add TOK_SEMICOLON and TOK_OPERATOR (Parser_next): pass postfix_op flag to Lexer_next(), dump token if CONF_LEXER_DEBUG is defined (Parser_next_postfixop): added (Parser_stmt): evaluate expressions (Parser_eval_error): added (Parser_eval): added (calc_*): added (top_statements): turn to static (host_statements): turn to static (RkcConfMgr_find): fix logic * lib/RKC/confP.h(CONF_LEXER_DEBUG): add debug flag (CONF_EVAL_DEBUG): add debug flag (TokenType): add TOK_OPERATOR (Operator): added (TokenVal): new member "opval" to store an operator (Parser): new member "exprval" =================================================================== File: no file conf.c Status: Needs Checkout Working revision: 1.2 Thu Aug 7 13:19:26 2003 Repository revision: 1.2 /cvsroot/canna/canna/lib/RKC/conf.c,v Existing Tags: No Tags Exist =================================================================== File: no file confP.h Status: Needs Checkout Working revision: 1.2 Thu Aug 7 13:19:27 2003 Repository revision: 1.2 /cvsroot/canna/canna/lib/RKC/confP.h,v Existing Tags: No Tags Exist