akkartik / mu

Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.
http://akkartik.name/akkartik-convivial-20200607.pdf
Other
1.35k stars 47 forks source link

Add support for escape sequences in string literals. #18

Closed charles-l closed 5 years ago

charles-l commented 5 years ago

This layered approach seems like a superb way to build software. It made it super easy to grasp what's going on. Put this PR together in an hour an a half, having never looked at the subx code before. Really excited to see where this project goes :)

The patch adds supports for \n, \t and \" in string literals.

To avoid screwing up the trace format, I added the functionality to unescape newlines in the messages.

akkartik commented 5 years ago

Awesome, thank you so much for the kind words! I'll take a look in an hour or three.

akkartik commented 5 years ago

BTW, you may be interested in the example repos I have for aspects of this codebase: https://git.sr.ht/~akkartik

More info: http://akkartik.name/post/four-repos

akkartik commented 5 years ago

Works awesome, thank you!