|
![](/i/fill.gif) |
PoD <pod### [at] merlin net au> wrote:
: I'm beginning to think that #static as a type of #declare would be more
: feasible, after all it is only usefull for things which take a long time
: to parse such as complex unions and meshes.
You forget that you can make #while-loops which take hours to parse although
it creates only some simple objects.
: When parsing a #static declaration, check if the name is already in the
: symbol table. If it is then skip to the end of the declaration.
: How do you know what's the end of the declaration?
: Firstly all declarations should end with a semi colon. Then each
: [#declare|#local|#static] would match up with a semi colon.
You still have to parse the entire code to see where is the matching
semicolon.
There's no way to avoid parsing other than copying the whole source code
to memory without the static parts of it and then parse this copy.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |