Re: forward reference

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

Bernie Ryan wrote:
> 
> 
> When a user wants to create a forward reference in Euphoria;
> 
> why can't the user give a description of a function/procedure
> 
> at the top of their program.
> 
> }}}
<eucode>
> 
> function foo(sequence bar) end function
> 
> </eucode>
{{{

> 
> Then the scanner could create a dummy entry in the symbol table
> 
> as a holding place and target for any forward reference.
> 
> When this function name is encountered and there is code between the ')'
> 
> and 'end' tokens then the symbol table entry could be modified into
> 
> a real symbol table entry.
> 
> This could be done without having to change to a multipass scanner.
> 
> Could this be done ?
>    
> Bernie
> 
> My files in archive:
> WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 
> 
> Can be downloaded here:
> <a
> href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a>

It is done in Æ . Or in Orac (there is kind of a connection).

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu