feat: Add double-quoted string constants with escapes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Resolves #20.
This commit is contained in:
Glen Whitney 2021-02-18 19:41:54 -08:00
parent bfe3f86116
commit d2ba26a53e
6 changed files with 11 additions and 3 deletions

View file

@ -184,16 +184,19 @@ constructor was trivial:
Now typing literals is straightforward:
```statix
{! "\git docs/statix_works:trans/statics.stx" extract:
start: '(.*ty_Ex.Int.*\s*)'
stop: '/. ../'
!}
```
**/
/** md */
ty_Ex(Int(_)) = INT().
ty_Ex(LitString(_)) = STRING().
ty_Ex(EscString(_)) = STRING().
ty_Ex(e@Stream()) = STREAM().
/* **/
/** md
```
Finally we get to the binary operators, and here we use the pattern found in
recent versions of the