Skip to content

Commit 9a92950

Browse files
committed
Update PR changes
1 parent a15d121 commit 9a92950

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// List of extensions which should be recommended for users of this workspace.
66
"recommendations": [
77
"ms-vscode.cmake-tools", // CMake for Debugging C/C++
8-
"vs-code-extensions.vscode-clangd", // Optional intellisense-like features with LLVM/clangd
9-
"daohong-emilio.yash", // For flex/bison source files
8+
"llvm-vs-code-extensions.vscode-clangd", // Optional intellisense-like features with LLVM/clangd
9+
"theodevelop.bison-flex-lang", // For flex/bison source files
1010
],
1111
}

.vscode/launch.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// Resolved by CMake Tools:
1212
"program": "${command:cmake.launchTargetPath}",
1313
// "--header-file=<output_header>", "-o<output_source>", "<input_source>"
14-
"args": [
15-
"calc.l",
16-
],
14+
"args": [],
1715
"cwd": "${workspaceFolder}/../flex-bison-example",
1816
"terminal": "integrated",
1917
"stopOnEntry": false,
@@ -23,7 +21,7 @@
2321
},
2422
"windows": {
2523
// Warning: CodeLLDB is still slower than WinDbg (cppvsdbg) in Windows
26-
// and don't support C++ (string/vector) for MSVC ABI - this code base is C99
24+
// and don't support C++ (string/vector) for MSVC ABI - this codebase is C99
2725
"env": {
2826
"PATH": "${env:PATH};${command:cmake.launchTargetDirectory}"
2927
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The release page includes the full Changelog but you may also see the [changelog
3838
You may:
3939
- use `win_flex` and `win_bison` directly on the command line
4040
- [use them via CustomBuildRules in VisualStudio](custom_build_rules/README.md).
41-
- use them via [CMake Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools) in [Visual Studio Code](vscode/README.md).
41+
- use them via [CMake Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools) in [vscode-like editors](vscode/README.md).
4242

4343

4444
## Example flex/bison files

vscode/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
Alternatively, VS Code is available for debugging, here is a simple guide (based on the [MS documentation](https://code.visualstudio.com/docs/cpp/cmake-linux)):
2+
# How to setup vscode-like editors for debugging win_flex/win_bison
3+
4+
Here is a simple guide (based on the [MS documentation](https://code.visualstudio.com/docs/cpp/cmake-linux)):
35
1. Make sure the [Prerequisites](https://code.visualstudio.com/docs/cpp/cmake-linux#_prerequisites) are installed.
46
2. [Select a compiler kit](https://code.visualstudio.com/docs/cpp/cmake-linux#_select-a-kit), any of the native `amd64` version of MSVC is recommended for compatibility - any of the rest with `x86` is cross-compiling a 32-bit version of `win_flex`/`win_bison`.
57

@@ -19,15 +21,14 @@ NOTE: Click `Scan for kits` when setting up C/C++ debugging for the first time i
1921
- here is a sample for `win_flex` target:
2022
```json
2123
"args": [
22-
"calc.l"
24+
"calc.l",
2325
],
2426
```
2527
- here is a sample for `win_bison` target:
2628
```json
2729
"args": [
28-
"--header-file=sample.tab.h",
29-
"-osample.tab.c",
30-
"sample.l"
30+
"-d",
31+
"calc.y",
3132
],
3233
```
3334
- NOTE: This example uses source files without full path was achieved by setting `cwd`

0 commit comments

Comments
 (0)