ourPLCC / plcc

A Programming Languages Compiler Compiler
GNU General Public License v3.0
8 stars 4 forks source link

Replace `#include` with `%include` #115

Closed StoneyJackson closed 7 months ago

StoneyJackson commented 7 months ago

Rationale:

  1. PLCC grammar files use # for comments. So #include looks like a comment but isn't.
  2. PLCC grammar files use one or more % to signal other syntactic constructs like section dividers.
  3. No other major programming languages use %include.
  4. C/C++ and any other language that uses CPP uses #include.

Agreed on 4/19/2024.