1. include files routines, constants...
- Posted by =?iso-8859-2?B?qWtvZGE=?= <tone.skoda at SIOL.NET> Jul 21, 2000
- 411 views
- Last edited Jul 22, 2000
------=_NextPart_000_0007_01BFF362.558CD220 charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable anybody knows if such program exists which anlyzes euphoria file and all = its includes files and puts all routines, constants... which are used by = this program/source in one file? i am planing to write it i think it shouldnt be too difficult? my editor now lists all routines in comboboxes and you can jump to them = by clicking on them, you can open *all* include files, they are also = listed in combo ------=_NextPart_000_0007_01BFF362.558CD220 charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-2" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#b07cc8> <DIV><FONT face=3DVerdana size=3D2>anybody knows if such program exists = which=20 anlyzes euphoria file and all its includes files and puts all routines,=20 constants... which are used by this program/source in one = file?</FONT></DIV> <DIV><FONT face=3DVerdana size=3D2>i am planing to write it</FONT></DIV> <DIV><FONT face=3DVerdana size=3D2>i think it shouldnt be too=20 difficult?</FONT></DIV> <DIV><FONT face=3DVerdana size=3D2></FONT> </DIV> <DIV><FONT face=3DVerdana size=3D2>my editor now lists all routines in = comboboxes=20 and you can jump to them by clicking on them, you can open *all* include = files,=20 ------=_NextPart_000_0007_01BFF362.558CD220--
2. Re: include files routines, constants...
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Jul 21, 2000
- 413 views
=A9koda wrote: > anybody knows if such program exists which anlyzes=20 > euphoria file and all its includes files and puts=20 > all routines, constants... which are used by this=20 > program/source in one file? Yes; take a look at FIX, which is included with Win32Lib. It basically = akin to RDS's shroud, only when it mangles a routine's name, it makes sure = that the string in routine_id() is also renamed. The reason that the code is relatively small is that it doesn't really = pay much attention to syntax - it's goal in life is to replace non-keywords = with new names. if you added stuff to keep track of the state (based on the preceeding word), you could keep track of what was a routine, a = constant, etc. There's also EU, a Euphoria interpreter written in Euphoria. It's a = complete parser, a lot more sophisticated than FIX. -- David Cuny
3. Re: include files routines, constants...
- Posted by =?iso-8859-2?B?qWtvZGE=?= <tone.skoda at SIOL.NET> Jul 22, 2000
- 405 views
- Last edited Jul 23, 2000
i ran fix.ex and it generated a 150K file, not till finish, and error in program occured. i am not registered so i cant tell you what it was. it does what i wanted. But 2 things need to be different: 1.to leave routines,constant ... names unchanged 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. Can fix.ex be expanded to do this? i want the code to be readable and to post it then. Just to leave out unused routines and constants... >There's also EU, a Euphoria interpreter written in >Euphoria. It's a complete >parser, a lot more sophisticated than FIX. i'll take a look at it, now going to download it... Can your EBASIC translator be used to translate VB code to euphoria?
4. Re: include files routines, constants...
- Posted by David Cuny <dcuny at LANSET.COM> Jul 22, 2000
- 407 views
- Last edited Jul 23, 2000
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