[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re: Re: Lightweight syntax: a dissident view
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 24 Nov 2010 14:18:15 -0200
> AFAICT, the only unambiguous syntax is the following:
>
> `initial_token` [arglist] `separator` [chunk] `final_token´
> or
> `initial_token` [arglist] `separator` [explist] `final_token´
>
> with `final_token` ~= `initial_token`, and various restrictions on the
> individual tokens to avoid ambiguities.
For instance:
initial_token = '\'
separator = '. ('
final_token = ')'
e.g.: \x.(x+1) \x,y.(x+y) \.(3)
-- Roberto