parser.bat
来自「一个自定义简单脚本引擎的实现代码」· Batch 代码 · 共 19 行
BAT
19 行
@echo off
rem *** Make sure Bison can find these files
move ..\bison.simple . >nul
move ..\bison.hairy . >nul
rem *** Run Bison to generate the parser
..\bison --defines --verbose -o parse.cpp string.y
rem *** Put the files back
move bison.simple .. >nul
move bison.hairy .. >nul
rem *** Rename parse.cpp.h to lexsymb.h
if exist lexsymb.h del lexsymb.h
ren parse.cpp.h lexsymb.h
:End
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?