Am I evil for this?

Walter Bright newshound2 at digitalmars.com
Sat Oct 15 18:22:17 UTC 2022


On 10/15/2022 10:42 AM, Timon Gehr wrote:
> On 15.10.22 18:45, Walter Bright wrote:
>> On 10/15/2022 5:41 AM, Timon Gehr wrote:
>>> You can parse it as a single "operator expression" and resolve precedence 
>>> during semantic analysis.
>>
>> The operator precedence drives the parse.
> 
> It does not _have_ to work that way.

I know. The tokens can be "parsed" by just storing them in an array, deferring 
constructing the AST until the semantics are known.

But that isn't really parsing, and makes 3rd party tools much more complex.


More information about the Digitalmars-d mailing list