Re: include files routines, constants...

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

Ckoda wrote:


> 1.to leave routines,constant ... names unchanged

as a rule, routines are preceeded by 'function', 'procedure' or 'type', and
are followed by ')'. constants are a bit more complex, since you can write:

   constant a = 12, b = 22, c = 14

you can't just scan for a comma, because it's valid to write something like
this:

   constant x = power(1,3), b = 12

and your scanner would read it '3' as a constant, since it follows a comma.
so as soon as you want to parse out things like variables and constants,
your parser needs to be a bit more clever.

> 2. to create new include file for every file processed
> and put it in new directory, that way local routine names
> of different files won't be same and causing errors.

yes, you can copy the include files wherever you want.

> i'll take a look at it, now going to download it...

it's probably closer to what you will need.

> Can your EBASIC translator be used to translate VB code to euphoria?

no, sorry. at the time it was written, euphoria was a dos-only application.

-- david cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu