use tokenlist for lexer parser.
commit96cbf96af887f92bff1fd1a849a699670527daf3
authorskeletone <skeletone@126.com>
Mon, 26 Jun 2023 13:47:25 +0000 (26 21:47 +0800)
committerskeletone <skeletone@126.com>
Mon, 26 Jun 2023 13:47:25 +0000 (26 21:47 +0800)
tree6a54348a128202a237fce3d5aad00937b059443f
parentb6c83827a4d515b528b968219428f916dc23abf5
use tokenlist for lexer parser.
append multi-state in nest
append Parser, IptSrc, SrcFmtType code to parsing multi-format file.
append STR_BUFF for txt data buffering.
append general token define in different state.
combine function with different data width in AQStack.
58 files changed:
src/config/lxrgmr-code/build.sh
src/config/lxrgmr-code/command.h [new file with mode: 0644]
src/config/lxrgmr-code/doc/5.note.md [new file with mode: 0644]
src/config/lxrgmr-code/gmr/parser.tab.h
src/config/lxrgmr-code/lib/AQStack.c [moved from src/config/lxrgmr-code/AQStack.c with 100% similarity]
src/config/lxrgmr-code/lib/AQStack.h [moved from src/config/lxrgmr-code/AQStack.h with 100% similarity]
src/config/lxrgmr-code/lib/AQStack_test.c [moved from src/config/lxrgmr-code/AQStack_test.c with 100% similarity]
src/config/lxrgmr-code/lib/StrBuff.c [moved from src/config/lxrgmr-code/StrBuff.c with 62% similarity]
src/config/lxrgmr-code/lib/StrBuff.h [moved from src/config/lxrgmr-code/StrBuff.h with 66% similarity]
src/config/lxrgmr-code/lib/expanssion.c [moved from src/config/lxrgmr-code/lxr/expanssion.c with 100% similarity]
src/config/lxrgmr-code/lib/expanssion.h [moved from src/config/lxrgmr-code/lxr/expanssion.h with 100% similarity]
src/config/lxrgmr-code/lib/finc.c [new file with mode: 0644]
src/config/lxrgmr-code/lib/util.c [moved from src/config/lxrgmr-code/util.c with 98% similarity]
src/config/lxrgmr-code/lib/util.h [moved from src/config/lxrgmr-code/util.h with 100% similarity]
src/config/lxrgmr-code/lxr/config.lexdecl.c
src/config/lxrgmr-code/lxr/config.lexproc.c
src/config/lxrgmr-code/lxr/script.l
src/config/lxrgmr-code/lxr/script.lex.c
src/config/lxrgmr-code/lxr/script.lexproc.c [deleted file]
src/config/lxrgmr-code/lxr/token_id.c
src/config/lxrgmr-code/lxr/token_id.h
src/config/lxrgmr-code/reglxgmr.c [new file with mode: 0644]
src/config/lxrgmr-code/test/gmr/5.3.InitExpr.in
src/config/lxrgmr-code/test/token/1.1.CommentText.in
src/config/lxrgmr-code/token/code.c [moved from src/config/lxrgmr-code/tokenproc/code.c with 67% similarity]
src/config/lxrgmr-code/token/codeblock.c [moved from src/config/lxrgmr-code/tokenproc/codeblock.c with 52% similarity]
src/config/lxrgmr-code/token/codeblock.var [deleted file]
src/config/lxrgmr-code/token/envar.c [moved from src/config/lxrgmr-code/tokenproc/envar.c with 54% similarity]
src/config/lxrgmr-code/token/getoken.c [new file with mode: 0644]
src/config/lxrgmr-code/token/input.c [new file with mode: 0644]
src/config/lxrgmr-code/token/srcfile.c [new file with mode: 0644]
src/config/lxrgmr-code/token/strtoken.c [moved from src/config/lxrgmr-code/tokenproc/strtoken.c with 50% similarity]
src/config/lxrgmr-code/token/strtoken.h [new file with mode: 0644]
src/config/lxrgmr-code/token/token_name.var [deleted file]
src/config/lxrgmr-code/token_id.c [deleted file]
src/config/lxrgmr-code/token_id.h [deleted file]
src/config/lxrgmr-code/tokenlist/append_str.sh [moved from src/config/lxrgmr-code/token/append_str.sh with 100% similarity]
src/config/lxrgmr-code/tokenlist/build-config.var [moved from src/config/lxrgmr-code/token/build-config.var with 100% similarity]
src/config/lxrgmr-code/tokenlist/cmnt.var [moved from src/config/lxrgmr-code/token/cmnt.var with 94% similarity]
src/config/lxrgmr-code/tokenlist/code.var [moved from src/config/lxrgmr-code/token/code.var with 90% similarity]
src/config/lxrgmr-code/tokenlist/codeblock.var [new file with mode: 0644]
src/config/lxrgmr-code/tokenlist/envar.var [moved from src/config/lxrgmr-code/token/envar.var with 91% similarity]
src/config/lxrgmr-code/tokenlist/expr.var [moved from src/config/lxrgmr-code/token/expr.var with 87% similarity]
src/config/lxrgmr-code/tokenlist/string.var [moved from src/config/lxrgmr-code/token/string.var with 64% similarity]
src/config/lxrgmr-code/tokenlist/tmp.txt [moved from src/config/lxrgmr-code/token/tmp.txt with 100% similarity]
src/config/lxrgmr-code/tokenlist/token.h [moved from src/config/lxrgmr-code/token.h with 90% similarity]
src/config/lxrgmr-code/tokenlist/token.var [moved from src/config/lxrgmr-code/token/token.var with 94% similarity]
src/config/lxrgmr-code/tokenlist/tokenname.var [moved from src/config/lxrgmr-code/token/tokenname.var with 92% similarity]
src/config/lxrgmr-code/tokenproc/strtoken.h [deleted file]
src/config/lxrgmr-code/vtokenlist/Envar.var [copied from src/config/lxrgmr-code/test/gmr/5.3.InitExpr.in with 100% similarity]
src/config/lxrgmr-code/vtokenlist/Expr.var [copied from src/config/lxrgmr-code/test/gmr/5.3.InitExpr.in with 100% similarity]
src/config/lxrgmr-code/vtokenlist/Lang.var [copied from src/config/lxrgmr-code/test/gmr/5.3.InitExpr.in with 100% similarity]
src/config/lxrgmr-code/vtokenlist/Macro.var [copied from src/config/lxrgmr-code/test/gmr/5.3.InitExpr.in with 100% similarity]
src/config/lxrgmr-code/vtokenlist/Multidata.var [copied from src/config/lxrgmr-code/test/gmr/5.3.InitExpr.in with 100% similarity]
src/config/lxrgmr-code/vtokenlist/assign.var [copied from src/config/lxrgmr-code/test/gmr/5.3.InitExpr.in with 100% similarity]
src/config/lxrgmr-code/vtokenlist/vfaccess.var [copied from src/config/lxrgmr-code/test/gmr/5.3.InitExpr.in with 100% similarity]
src/config/lxrgmr-code/vtokenlist/vtoken.h [copied from src/config/lxrgmr-code/test/gmr/5.3.InitExpr.in with 100% similarity]
src/config/lxrgmr/inc.h