3. Introduction to MetaL

3.6. Generating target source code

  • Each compiler module may execute any type of action to implement a MetaL command.

  • Actions may be immediate, like creating a file, or may be generating some output like the lines of code of a program in a given target language.

  • A compiler module may be able to generate code for the same MetaL command in multiple target languages.

  • The compiler bindings define which module implements the translation of commands to a given target language.

  • The definition of the compiler bindings is done in a separate XML file with a specific structure. ||