Using Space-Skipping While Preserving Whitespace in Strings and Comments
Towards Higher Level Syntax for Programming Languages, 2024-09-15
Using Space-Skipping While Preserving Whitespace in Strings and Comments
Abstract
OhmJS[1] incorporates a feature called space skipping.
This feature results in grammars that have better human-readability, but, when used for space-preserving t2t transpilation, this feature requires care to avoid altering the contents of strings and comments due to space-skipping.
This article discusses a practical approach to creating a preprocessing pass to allow convenient use of space-skipping in space-preserving t2t transpilation.
See Also
References: https://guitarvydas.github.io/2024/01/06/References.html
Blog: https://guitarvydas.github.io
Videos: https://www.youtube.com/@programmingsimplicity2980
Discord: https://discord.gg/qtTAdxxU
Leanpub: [WIP] https://leanpub.com/u/paul-tarvydas
Gumroad: https://tarvydas.gumroad.com
Twitter: @paul_tarvydas

