preprocessor for structures
------=_NextPart_000_0007_01BFAE23.82033580
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
Euphoria misses structures like C has them
i am planning on writing preprocessor which will translate this:
structure TRE
atom rain
sequence names
end structure
TRE tre1
tre1.rain=3D3
mn=3Dtre1.names[1]
? tre1.rain
to this:
sequence tre1
tre1=3Drepeat(0,tre1size) -- tre1size will be figured out by
preprocessor
tre1[1]=3D3
mn=3Dtre1[2][1]
? tre1[1]
anybody has any ideas how this could be done without writing =
preprocessor?
------=_NextPart_000_0007_01BFAE23.82033580
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#ffffff>
<DIV><FONT face=3DArial size=3D2>Euphoria misses structures like C has=20
them</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i am planning on writing preprocessor =
which will=20
translate this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><EM><FONT color=3D#808000 face=3DArial size=3D2>structure =
TRE<BR> atom=20
rain<BR> sequence names<BR>end structure</FONT></EM></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#808000 face=3DArial size=3D2><EM>TRE=20
tre1<BR>tre1.rain=3D3<BR>mn=3Dtre1.names[1]<BR>? =
tre1.rain</EM></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>to this:</FONT></DIV>
<DIV> </DIV>
<DIV><EM><FONT color=3D#808000 face=3DArial size=3D2>sequence =
tre1</FONT></EM></DIV>
<DIV> </DIV>
<DIV><EM><FONT color=3D#808000 face=3DArial =
size=3D2>tre1=3Drepeat(0,tre1size) --=20
tre1size will be figured out by</FONT></EM></DIV>
<DIV><EM><FONT color=3D#808000 face=3DArial =
size=3D2>preprocessor</FONT></EM></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#808000 face=3DArial =
tre1[1]</EM></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>anybody has any ideas how this could be =
done=20
------=_NextPart_000_0007_01BFAE23.82033580--
|
Not Categorized, Please Help
|
|