tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "win_flex",
"type": "shell",
"windows": {
"command": "win_flex --wincompat -o lexer.cc lexer.l"
}
},
{
"label": "win_bison",
"type": "shell",
"windows": {
"command": "win_bison --no-line -d -o parser.cc parser.y"
}
},
{
"label": "FlexBison Build",
"dependsOrder": "sequence",
"dependsOn": [
"win_flex",
"win_bison"
]
}
]
}
<ctrl+shift+p>选择Run Task在选择"FlexBison Build"任务
files:
λ atree ./
|-- lexer.cc
|-- lexer.l
|-- parser.cc
|-- parser.h
|-- parser.y
|-- .vscode/
| |-- tasks.json
See also: