Re: Dynamic tokens

2020-02-03 Thread Hans Åberg
> On 2 Feb 2020, at 20:29, Ervin Hegedüs wrote: > > is there any way to make a parser with "dynamic" tokens? > > I mean in compiling time I don't know the available tokens. It is not possible to have dynamically created token values, … > Now I describe > the necessary token with regex, but I

Re: Dynamic tokens

2020-02-03 Thread Ervin Hegedüs
Hi Hans, thanks for your reply, On Mon, Feb 03, 2020 at 03:00:20PM +0100, Hans Åberg wrote: > > > On 2 Feb 2020, at 20:29, Ervin Hegedüs wrote: > > > > is there any way to make a parser with "dynamic" tokens? > > I mean in compiling time I don't know the available tokens. > > It is not possi

Re: Dynamic tokens

2020-02-03 Thread Hans Åberg
> On 3 Feb 2020, at 16:33, Ervin Hegedüs wrote: … >>> Example from the language: >>> @eq 1 >>> @lt 2 >>> @streq foo >>> >>> The problem is that the LANG_OP_ARGUMENT could be anything - for example, >>> that could be also starts with "@". So, the next expression is valid: >>> >>> @streq @streq