add-grammar
Add new grammar production to the bash parser (new token, AST node, or syntax)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add new grammar production to the bash parser (new token, AST node, or syntax)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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.