The Only Two Markup Languages
lobste.rs·1d·
Discuss: Lobsters
🎨Domain-Specific Languages
Preview
Report Post

It’s nice to see more discussions of concrete syntax in markup languages! I’ve refactored most of Typst’s current parser, so I have a lot of appreciation for the nuance of markup language syntax. Here are three thoughts I had while reading this:

First, to go along with the broad families, I would argue for including a third family based on Lisp or TcL (Forth/Shell are similar, but I’ll just write out these). For example, here’s how I would respectively render some nested markup: Lisp: (foo (attrib value) '(,(bar 'wrapped) text)) TcL: [foo -attrib $value "[bar "wrapped"] text"]. The defining difference of these syntaxes to the others is the more explicit quoting of text content and the more implicit use of nodes/variables. While this is approaching the explicitness of a …

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help