[Jprogramming] parser rules

adam dunne adamdun at gmail.com
Mon Jul 16 14:44:05 HKT 2007


See the following:f=:2&^~
   f
┌───────┬─┐
│┌─┬─┬─┐│~│
││2│&│^││ │
│└─┴─┴─┘│ │
└───────┴─┘
   f 3
1.15792e77
   g=:2&(^~)
   g
┌─┬─┬─────┐
│2│&│┌─┬─┐│
│ │ ││^│~││
│ │ │└─┴─┘│
└─┴─┴─────┘
   g 3
9
As you can see, the parser does the adverb before the conjunction,
with no parenthesis, in the first case.
Yet the parse table has the adverb before the conjn. Any explanations?


More information about the Programming mailing list