News for hackers. Stuff that matters.
Re:Bicameral, Not Homoiconic by aidenn0 on Monday December 02, 2024 @01:18PM (#42298773)
The output of the Lisp reader is not an AST. It is completely unaware of many syntactical rules of the language, and is absent of any context. The equivalent in a C like language would be a stage that quite willingly generates a tree for the following:

  void foo(int int) {
    else {
      x = 3;
    }
  }
Which most compilers will never construct a tree for despite it following some unifying rules for the structure of code in a C-like language (braces and parentheses are balanced, statement has a semicolon after it, &c.).

There are no comments on this comment yet.