~/talk

Creating a DSL

Talkat React Alicante 2022 · 2022-09-29..10-01· [javascript, web-platform]
slides:none on file

A text DSL is used to encode supplier discount and rebate rules for automatic margin calculation and it proves readable enough for non-developers to copy paste and edit; implementation uses a hand‑written parser producing an AST with location info, a small interpreter rather than codegen, and Babel code‑frame for precise errors; avoids PEG.js and big regex pitfalls and adds a web syntax highlighter and autocomplete; an experimental Rust+WASM JavaScript sandbox is pursued for heavier plugin needs.

AI-written summary · about

  1. 0:00Start
  2. 1:37What is a domain specific language?
  3. 8:01DSL vs. General Purpose
  4. 10:58Compiler
  5. 13:58Regular Expression
  6. 15:52Define an AST
  7. 33:14Alternative
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.