alessiostalla / treep

Experiment in creating "language workbench" building blocks in Lisp, with no GUI, only API
GNU Affero General Public License v3.0
3 stars 0 forks source link

Form-driven reader #3

Closed alessiostalla closed 1 year ago

alessiostalla commented 3 years ago

(foo bar baz)

  1. read symbol foo
  2. try to instantiate class foo
  3. if successful, use (read-next-form foo stream) until end of expression found
  4. otherwise, use normal algorithm

Goal: in (class foo (bar ...)), read bar as foo:bar, i.e. definitions that act as namespaces (as in Java, etc.)