Close

The need for a preprocessor

A project log for BCFJ

Because I want to create a good-for-all language borrowing qualities from Bash, BASIC, C, Forth and JavaScript

yann-guidon-ygdesYann Guidon / YGDES 03/10/2018 at 11:050 Comments

Compiles languages often have a preprocessor (I'm looking at you, Ada/VHDL...). Scripting languages don't.

Since this is based on a scripting engine (with an interpreter that manages files inclusions etc.) there is no need for preprocessing or substitution. The dynamic environment does the preprocessor's work as well as "elaboration" (like in Ada/VHDL). The "source code" contains not only the instructions to execute but also how to execute them...

Discussions