Article View: net.lang.apl
Article #26Re: apl parsing
From: rabbitark
Date: Thu, 08 Apr 1982 10:50
Date: Thu, 08 Apr 1982 10:50
12 lines
862 bytes
862 bytes
I meant the hardest part of MACHINE parsing, because your typical parser changes the characters to tokens left to right and then parses during execution right to left. When parsing right to left and you've seen ...]-X, you do indeed have to find the matching [ and look beyond it before you can figure out what to do about the -. You might argue "But you can classify the - as monadic or dyadic on the left to right scan". Indeed you might! But you can't in such simple cases as A-B, because you don't know until you get there whether A is a variable or a monadic function. It was a long time before IBM APL knew how to handle +/[X]-Y
Technical Details
Message-ID:
<anews.Arabbit.427>Path:
arc1-ca.pugleaf.net!utzoo!decvax!duke!harpo!ihnss!houxi!npois!alice!rabbit!arkShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!decvax!duke!harpo!ihnss!houxi!npois!alice!rabbit!ark From: rabbit!ark Newsgroups: net.lang.apl Subject: Re: apl parsing Date: Thu, 08 Apr 1982 10:50:17 +0000 Message-ID: <anews.Arabbit.427>