You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,47 @@
2
2
3
3
All notable changes to the **Bison/Flex Language Support** extension will be documented in this file.
4
4
5
+
## [1.1.0] - 2026-03-18
6
+
7
+
### Added
8
+
9
+
-**Document Symbols** — Outline view (`Ctrl+Shift+O`) with collapsible sections for declarations, rules, and epilogue (Bison) or definitions, rules, and user code (Flex)
10
+
-**Workspace Symbols** — Fuzzy symbol search (`Ctrl+T`) across all open Bison and Flex files (up to 200 results)
11
+
-**Code Lens** — "N reference(s)" above each Bison rule and Flex start condition; "⬪ entry point" badge above the start symbol
12
+
-**Inlay Hints** — Inline type annotations for `$$`, `$1`, `$2`, etc. derived from `%type`/`%token` declarations
13
+
-**CMake Integration**
14
+
- Diagnostic warning when a `.y`/`.l` file is not referenced in a nearby `BISON_TARGET`/`FLEX_TARGET`
15
+
- New command **Bison/Flex: Add CMake Target** — appends the correct `BISON_TARGET` or `FLEX_TARGET` snippet to `CMakeLists.txt`
16
+
-**Compile Commands**
17
+
-**Bison: Compile** — runs `bison -d` on the current file and surfaces errors as VS Code diagnostics
18
+
-**Flex: Compile** — runs `flex` on the current file and surfaces errors as VS Code diagnostics
19
+
-**Grammar Tools**
20
+
-**Bison: Show Parse Table** — renders the `.output` parse table in a side panel
21
+
-**Bison: Show Grammar Graph** — interactive D3.js force-directed graph; click a node to navigate to the rule; detects left/right recursion
22
+
-**Bison: Explain Conflict** — detailed shift/reduce conflict analysis with fix suggestions and precedence recommendations
23
+
-**Bison: Generate AST Skeleton** — generates a complete C++ AST with visitor pattern, forward declarations, and node classes
24
+
-**Flex: Test Rule** — interactive regex tester for the pattern on the current line
25
+
-**Initialize tasks.json** — auto-generates `.vscode/tasks.json` with Bison/Flex problem matchers; auto-detects CMake and Makefile projects
26
+
-**Yacc Legacy Hints** — inlay hints for legacy `%pure_parser`, `%union`, and `YYSTYPE` patterns pointing to modern Bison equivalents
27
+
-**Smart Indent** — `onEnterRules` for Bison and Flex that indent correctly after rule openers and `%{`/`%}`
28
+
29
+
### Changed
30
+
31
+
- README updated with all new features, configuration settings, and screenshots
32
+
- Status bar shows a "Grammar Graph" shortcut button when a Bison file is active
33
+
34
+
### Configuration
35
+
36
+
Three new settings:
37
+
38
+
| Setting | Default | Description |
39
+
|---------|---------|-------------|
40
+
|`bisonFlex.showInlayHints`|`true`| Show inlay hints for `$$`/`$1`/`@$` semantic values |
41
+
|`bisonFlex.enableCodeLens`|`true`| Show Code Lens reference counts and entry-point badges |
42
+
|`bisonFlex.enableCmakeDiagnostics`|`true`| Warn when a `.y`/`.l` file is missing from `CMakeLists.txt`|
-**Bison: Show Grammar Graph** — interactive D3.js force-directed graph of the grammar; click a node to navigate to the rule; left/right recursive rules highlighted
112
+
-**Bison: Show Parse Table** — displays the Bison `.output` parse table in a side panel
113
+
-**Bison: Explain Conflict** — detailed shift/reduce conflict analysis with derivations and fix suggestions
114
+
-**Bison: Generate AST Skeleton** — generates a complete C++ AST header with visitor pattern
115
+
-**Flex: Test Rule** — interactive regex tester for the pattern on the current line
116
+
117
+
### Compile Integration
118
+
119
+
-**Bison: Compile** / **Flex: Compile** — run the compiler on the current file and surface errors as VS Code diagnostics
120
+
-**Bison/Flex: Initialize tasks.json** — auto-generates `.vscode/tasks.json` with problem matchers; detects CMake and Makefile projects
121
+
82
122
---
83
123
84
124
## Screenshots
@@ -118,7 +158,7 @@ Search for **"Bison/Flex Language Support"** in the VS Code Extensions panel (`C
0 commit comments