From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <3aaafc130910300855l3d7113a2hd3fcf3c4330930c1@mail.gmail.com> References: <3aaafc130910300855l3d7113a2hd3fcf3c4330930c1@mail.gmail.com> Date: Fri, 30 Oct 2009 17:09:41 +0100 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] hoc's behaviour, unary operators Topicbox-Message-UUID: 948bc884-ead5-11e9-9d60-3106f5b1d025 2009/10/30 Jorden Mauro : > Look under the production for expr in /sys/src/cmd/hoc/hoc.y > > Looks like the unary plus problem would be a one-line fix. The -- with no space > may be harder to fix. Thanks, I will. Nonetheless, the problem, as I am thinking about it now, could possibly (also) be connected to ++ and -- operators, as in a++, a-- where 'a' is some variable. Although the meaning for e.g. a--b is still only one, i.e. a - (-b), (a-- b wouldn't make sense) it probably can't (can it?) be parsed simply with yacc... Ruda