Find and replace scn

WIP: playing with Ohm-JS / PEG operations ; using Obsidian markdown editor + a bit of HTML…
- Loop is a main rule - included in macro processor
- bulleted rules are helper rule for the main rule
- ASCII words are become Ohm-JS quoted strings “…”
- subscripted, italicized names are rule-calls
- ↺ represents recursion operator, i.e. Clause #nested parses
{, calls ruleStatement,}, then calls itself optionally (?) - underlined patterns represent bracketed matches, subscripted by
1...or0...or?translating to+,*, and?Ohm-JS iteration operations ≠translates to~in Ohm-JS, i.e. negative match of next item- e.g.
≠;meansnot semicolon(~”;”)
- e.g.
✓translates toany=meanssame as, translates to a single rule call- e.g. “SymbolListName
=word “ translates to “SymbolListName = word”
- e.g. “SymbolListName
- tags translate to
-- tagin Ohm-JS-
e.g. “- Clause #nested …”” translates to “Clause = … – nested”
-
See Also
Blogs
https://publish.obsidian.md/programmingsimplicity (see blogs that begin with a date 202x-xx-xx-)
https://guitarvydas.github.io/
Videos
https://www.youtube.com/@programmingsimplicity2980
Books
leanpub’ed (disclaimer: leanpub encourages publishing books before they are finalized)
https://leanpub.com/u/paul-tarvydas
Discord
https://discord.gg/Jjx62ypR (“programming simplicity”) all welcome, I invite more discussion of these topics
@paul_tarvydas
Mastodon
(tbd, advice needed re. most appropriate server(s))