kurtlawrence / papyrus

(Rust) repl
MIT License
440 stars 14 forks source link

haven't handled expr variant Lit #102

Open dargonforce opened 3 years ago

dargonforce commented 3 years ago

Papyrus is unable to resolve literals. When you enter a literal like true, 21, or "papyrus rocks" you get the following error

haven't handled expr variant Lit. Raise a request here https://github.com/kurtlawrence/papyrus/issues

you can of course bind these to a variable, and then call the variable name, and they display just fine. You can use literals in more complex expressions, for instance true.to_string() or 9 + 10 gives exactly what you would expect.