Author Topic: Reverse-Engineering: get name of source file  (Read 3251 times)

Matthias Richter

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Reverse-Engineering: get name of source file
« on: August 01, 2014, 01:11:16 am »

I want to write a grammar for a custom macro language with the grammar editor.

My Question:
How is the command to obtain the filename of the currently parsed file? The filename shall be used as name attribute of an AST node.

Why the filename is needed:
Programs written with the macro language are structured into modules. One module consists of one source file. A source file does not contain the name of the module it defines. Instead the filename is handled as module name.