Files
hakorune/apps/ny-parser-nyash
Tomoaki a2b89fae7e phase15: update CLAUDE.md and sync with current progress
- Update phase indicator to Phase 15 (Self-Hosting)
- Update documentation links to Phase 15 resources
- Reflect completion of R1-R5 tasks and ongoing work
- Fix CURRENT_TASK.md location to root directory

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 13:29:17 +09:00
..

Ny Parser (v0) — Minimal Nyash-made Parser

  • Scope: integers, + - * /, parentheses, and a single return statement.
  • Output: JSON IR v0 as documented in CURRENT_TASK.md (Program/Return/Int/Binary).

Usage (Unix)

  • echo "return 1+2*3" | ./tools/ny_parser_run.sh

Usage (Windows PowerShell)

  • Get-Content .\apps\ny-mir-samples\arithmetic.nyash | .\tools\ny_parser_run.ps1

Notes

  • This is a minimal educational parser to bootstrap the self-host loop.
  • Errors print a JSON envelope: {"version":0,"kind":"Error",...}.