[llvm-dev] Linking Linux kernel with LLD

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 31 07:05:01 PST 2017


On Tue, Jan 31, 2017 at 12:28:37PM +0100, Alexander Benikowski via llvm-dev wrote:
> Let's say we have(without quotes ofcourse)
> "2 * 3"
> The lexer always produces 3 tokens, 2 with the content and identification
> for a numeraical value(for 2 and 3) and one for an operator token.

The problem with the linker script grammar is that "foo *" and "foo*"
can't both tokenize to IDENTIFIER STAR, since in the context of a
wildcard expression they mean different things. It certainly can be
dealt with by making the tokens whitespace sensitive or doing post
processing, but it is certainly not a nice grammar.

Joerg


More information about the llvm-dev mailing list