Skip to content

unify string handling in parser with normalized string token #108

@elliVM

Description

@elliVM

Description
Currently parser commands that accept string options handle multiple token types separately.

Example:

  • Single quoted 'value'
  • Double quoted "value"
  • Plain value

This forces consumer to check for quotes and normalize the the value manually. A cleaner solution would be to introduce a NORMAL_STRING token for all string option values, which would return a plain value and use that across all commands.

Motivation

  • Simplifies parser rules and downstream processing
  • Ensures consistent string handling across commands
  • Reduces potential bugs caused by inconsistent quoting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions