h3rald / min

A small but practical concatenative programming language and shell
https://min-lang.org
MIT License
309 stars 23 forks source link

Function requests: read & parse #14

Closed mwgkgk closed 6 years ago

mwgkgk commented 6 years ago

Currently there is no way to parse a string into a quoted expression without interpreting it. eval parses and interprets a string, and load parses and interprets a file.

Scheme-like read would parse a file into a quoted expression without interpreting it. A parse function would parse a string into a quoted expression without interpreting it. int and float already do that for ints and floats, so this would behave similarly but for quotes.

h3rald commented 6 years ago

Mmmm ok, I see your point. OK, they make sense and they will be a useful addition to the lang module. Thanks for the suggestion!