Skip to content

Add quoted-argument support to VNS interop parsing #2

@S1mplector

Description

@S1mplector

Why

VNS command payloads are split on whitespace (core/src/main/java/com/jvn/core/vn/DefaultVnInterop.java (line 317), same approach in runtime/src/main/java/com/jvn/runtime/RuntimeVnInterop.java), so multi-word values break as of right now.

An example would be [jes push game/minigame.jes with title="Final Battle"] becomes title="Final and Battle", [java com.acme.Log#info "hello world"] becomes two args. This blocks richer data passing between VNS and JES/Java and forces awkward underscoring.

What to do

  1. Implement a shared tokenizer that respects double quotes and backslash escapes; preserve current behavior for unquoted tokens
  2. Use it in DefaultVnInterop (java/var/cond handlers) and RuntimeVnInterop (jes/vns/menu parsing, with props) instead of naive split("\s+") I used earlier
  3. Update docs/VNS Scripting/VNS Scripting.md to remove the “No quoting support” limitation and add examples for JES/Java interop

Criteria

-Tokens in VNS commands should support quoted segments with spaces, backslash escape works for quotes and spaces
-JES interop receives full with values when they contain spaces
-Java interop receives full arguments when quoted

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions