Quoting Bert Wesarg <[EMAIL PROTECTED]>:

> > I'm getting segfaults with this and I'm currently unsure why.
> I should have tell with what macro. So here it is:
>
>   y()
>   define y {
>     t_print("Yeah!\n")
>   }
>
> or this:
>
>   define j {
>     t_print("Jikes!\n")
>   }
>   j()

What about something like:

    ident = "my string"
    define ident {
      dialog("redefined symbol type for ident?")
    }
    dialog(ident)

I think that this use of ident, as a local in the outer text, should
probably be allowed (as long as its never seen in a function call
context we have no conflict), but it means that the symbol table entry
can only be added AFTER the lexer returns the symbol name, once we
know how the symbol will be used. Note that ident above belongs in
local symbols in the outer context, but in globals for the defined
function.

Tony
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to