help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solving >> issue in templates


From: Evan Lavelle
Subject: Re: Solving >> issue in templates
Date: Wed, 06 Feb 2013 09:13:00 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0

On 05/02/2013 23:54, Adam Smalin wrote:
This doesn't help :( I see >> is in the lexer (search SHL) which means
List<List<int>> will not compile because >> is a right shift. But i looked
in the y file first and well... like i said its a C++ problem so C++
obviously would suffer from it.

Why have you got an issue with solving this in the AST logic? You can't expect to compile any reasonably complex language in a lexer and a parser. The lexer sorts out tokens, the parser lets you produce an first attempt at an AST. All the hard work happens afterwards. You're going to have to fix up hundreds of other things by manipulating the AST, so you might as well just get on with it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]