Re: include files routines, constants...
- Posted by David Cuny <dcuny at LANSET.COM> Jul 22, 2000
- 407 views
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