kjosib / booze-tools

Booze Tools will become the complete programming-language development workbench, all written in Python 3.9 (for now).
MIT License
14 stars 1 forks source link

Embedded Language Support: Concepts and Features #39

Open kjosib opened 3 years ago

kjosib commented 3 years ago

As a motivating example, consider the (somewhat haphazard) architecture of the current MacroParse compiler. You can think of it as a de-multiplexer that directs and delegates different portions of the input to different sub-language subsystems:

The object of this issue is to explore and resolve ways to refer to one language inside the definition of another without having to repeat definitions (for different applications) or worry about namespace conflicts.