add-grammar
Add new grammar production to the bash parser (new token, AST node, or syntax)
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Add new grammar production to the bash parser (new token, AST node, or syntax)
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Run the release-blocking Pester gate (tests/PsBash.Tests.ps1) the reliable way — build cmdlets, refresh beside-module DLLs, isolate PSModulePath from a stale installed PsBash, run Invoke-Pester.
Use (or extend) the shared PsBuild PowerShell-text builder and the OS-interface FileSystemHelpers/RunChildProcess helpers instead of hand-rolling PS strings or platform branches
Add a new bash command to the ps-bash transpiler and runtime
Debug a bash command that produces wrong output or crashes in ps-bash
Rebuild and publish the local ps-bash exe for testing in opencode
Audit one bash feature against the QA rubric and write its section into docs/testing/interactive-parity-audit.md
| name | add-grammar |
| description | Add new grammar production to the bash parser (new token, AST node, or syntax) |
| disable-model-invocation | true |
文言:token→詞法→AST record→parser production→emitter case→各層測試。皆在 PsBash.Transpiler/Parser。
Add grammar for: $ARGUMENTS · Ref: @docs/specs/parser-grammar.md · all files under src/PsBash.Transpiler/Parser/
BashTokenKind in BashToken.cs.BashLexer.cs): multi-char ops longest-first (<<< before <<); mind IoNumber adjacency. Test BashLexerTests.cs.Ast/Commands.cs or Ast/Words.cs): new sealed record on Command/WordPart; ImmutableArray<T> collections; XML doc cites Oils ASDL if any.BashParser.cs): handle in the right parse method (ParseSimple/ParseCompound…); new compound keyword → IsCompoundDelimiter. Test BashParserTests.cs.PsEmitter.cs): case in Emit for new Command.*; case in EmitWordPart for new WordPart.*. Test PsEmitterTests.cs../scripts/test.sh.