[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Context Sensitive Lexer
From: |
Hans Aberg |
Subject: |
Re: Context Sensitive Lexer |
Date: |
Fri, 23 Jan 2004 19:48:06 +0100 |
At 15:40 -0200 2004/01/23, Valter G. Nogueira Jr. wrote:
> I want to identify the minus sign (-) as 2 two diferent tokens one
>as unary operator a = -b and other as minus operator a = b - c
>Thanks,
This is usually resolved by the parser, using precedences in the grammar..
See for example the Bison manual, its infix notation calculator example.
User help with Bison is gotten at:
address@hidden http://mail.gnu.org/mailman/listinfo/help-bison
Hans Aberg