namepre (NOP,IS_NAME_BEGIN,PAUSE) /*指令名开始*/ other (NOP,NIL_FAILED,STOP) /*非法字符*/ (IS_NAME_BEGIN) space (NOP,IS_NAME_END,PAUSE) /*指令名结束*/ ? (NOP,IS_NAME_END,PAUSE) /*指令名结束*/ & (NOP,IS_NAME_BEGIN,SKIP) /*字符转义*/ name (NOP,IS_NAME_BEGIN,NEXT) /*继续指令名*/ other (NOP,NIL_FAILED,STOP) /*非法字符*/ (IS_NAME_END) space (NOP,IS_NAME_END,NEXT) /*忽略空格*/ ? (NOP,IS_CLOSE,NEXT) /*标记中断*/ namepre (NOP,IS_KEY_BEGIN,PAUSE) /*指令属性名开始*/ other (NOP,NIL_FAILED,STOP) /*非法字符*/ (IS_KEY_BEGIN) space (NOP,IS_KEY_END,PAUSE) /*属性名结束*/ = (NOP,IS_KEY_END,PAUSE) /*属性名结束*/ & (NOP,IS_KEY_BEGIN,SKIP) /*字符转义*/ name (NOP,IS_KEY_BEGIN,NEXT) /*继续属性名*/ other (NOP,NIL_FAILED,STOP) /*非法字符*/ (IS_KEY_END) space (NOP,IS_KEY_END,NEXT) /*忽略空格*/ = (NOP,IS_ASIGN,NEXT) /*属性赋值符*/ other (NOP,NIL_FAILED,STOP) /*非法字符*/ (IS_ASIGN) space (NOP,IS_ASIGN,NEXT) /*忽略空格*/ “ (NOP,IS_VAL_BEGIN,NEXT) /*属性赋值打开*/ ‘ (NOP,IS_VAL_BEGIN,NEXT) /*属性赋值打开*/ other (NOP,NIL_FAILED,STOP) /*非法字符*/ (IS_VAL_BEGIN) “ (NOP,IS_VAL_END,NEXT) /*属性值结束*/ ‘ (NOP,IS_VAL_END,NEXT) /*属性值结束*/ & (NOP,IS_VAL_BEGIN,SKIP) /*字符转义*/ token (NOP,IS_VAL_BEGIN,NEXT) /*继续属性值*/ other (NOP,NIL_FAILED,STOP) /*非法字符*/ (IS_VAL_END) space (NOP,IS_VAL_END,NEXT) /*忽略空格*/ ? (NOP,IS_CLOSE,NEXT) /*标记中断*/ other (NOP,IS_KEY_BEGIN,PAUSE) /*属性名开始*/ (IS_CLOSE) > (NOP,TG_CLOSE,NEXT) /*标记关闭*/ other (NOP,NIL_FAILED,STOP) /*非法字符*/ (NS_NAME_BEGIN) space (NOP,NS_NAME_END,PAUSE) /*元素名结束*/ > (NOP,NS_NAME_END,PAUSE) /*元素名结束*/ / (NOP,NS_NAME_END,PAUSE) /*元素名结束*/ & (NOP,NS_NAME_BEGIN,SKIP) /*字符转义*/ name (NOP,NS_NAME_BEGIN,NEXT) /*元素名继续*/ other (NOP,NIL_FAILED,STOP) /*非法字符*/ (NS_NAME_END) space (NOP,NS_NAME_END,NEXT) /*忽略空格*/ > (NOP,TG_INT_CLOSE,NEXT) /*元素名结束*/ / (NOP,TG_PRE_CLOSE,NEXT) /*元素名结束*/ other (NOP,NS_KEY_BEGIN,PAUSE) /*属性名开始*/
|
正在阅读:网页编程必看:XML文法分析网页编程必看:XML文法分析
2004-12-06 10:14
出处:CSDN
责任编辑:linjixiong
键盘也能翻页,试试“← →”键