Rob Idea for dynamic include

new topic     » topic index » view thread      » older message » newer message

Rob:
    I have an idea of how to implement a simple conditional

    include in your Euphoria Interpreter.


    Add a new keyword called IGNORE ( or what ever you want to call it )

    Then I do something like the following:

   if IWANTTOINCLUDETHIS then
     IGNORE
   end if

   -- include thisfile.e

   Then when your interperter sees the keyword "IGNORE" and It skips
   over the first -- comment operator that it sees and continues on
   parsing the program in the normal way.

   This would only require that you added a additional keyword and a
   a little code to bypass the -- comment operator

  Bernie

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu