[llvm-commits] An addition operator for TableGen

Sean Silva silvas at purdue.edu
Fri Jan 25 10:16:42 PST 2013


On Fri, Jan 25, 2013 at 12:40 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> I agree; but I think the two issues are somewhat separate.

Agreed. They're mostly orthogonal.

> Is there a good reason why we should not add infix operator parsing?

The reason it hasn't been done is probably just lack of anyone working
on it. There might be some grammar issues that it would cause (I
haven't looked in detail, but >> and << might be problematic). Proper
operator parsing would also have the benefit of removing the nasty
`///   RangePiece ::= INTVAL INTVAL` case in ParseRangePiece, which is
due to the `-` being lexed as part of the number instead of as a
prefix operator like every other language on the planet.

-- Sean Silva



More information about the llvm-commits mailing list