Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make prefixLength of MultilineStringValueParser a method #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ehmry
Copy link
Contributor

@ehmry ehmry commented Oct 31, 2022

This fixes parsing of multiline strings that contain whitespace.

I was digging around in spryextend because I would like to make an extension for Preserves data. Would it be feasible to add additional composite types that are homoiconic? I'd like to add Preserves records which are a labeled tuple type. I'm experimented with <'foo 1 2 3> and <<'foo 1 2 3>> syntax but I'm worried that nested records are going to be a problem for the parser. FWIW there are Preserves libraries for Smalltalk and Nim so I think Spry should be doable (I already have a module, but it's not homoiconic).

@ehmry
Copy link
Contributor Author

ehmry commented Nov 1, 2022

Maybe I can have custom type that $s to 'foo record: [ 1 2 3 ] to represent <foo 1 2 3> if I have a nimMeth of record: to construct it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant