fluencelabs / fluencelabs/aquavm

Support for escaping double quotes in string literal

Open
#124 1 comment 0 reactions 0 assignees View on GitHub
C-enhancement P-low
Dominant language
Rust
Stars
154
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Currently, there's no way to use double quotes inside a string literal. That makes it impossible to create a valid JSON string, for example.

```
┌─ script.air:22:78

22 │ (call relay (first_service "create_vault_file") ["{\"name\": \"file_share\"}"] config_filename)
│ ^ only alphanumeric, '_', and '-' characters are allowed in this position
```

Contributor guide

Open the contributing guide

Research direction

Start at the AIR string-literal parsing and validation path indicated by the error in the issue body, and inspect how quoted characters are currently restricted. Done means double quotes can be escaped inside string literals so the shown JSON value is accepted without the validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
43/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.