From a12f1d1bc8a39c3697bbd34cc0e248b9735a33e2 Mon Sep 17 00:00:00 2001 From: Stevie Strickland Date: Tue, 5 Jul 2005 07:24:26 +0000 Subject: [PATCH] Fixing up precedences such that the order of operations make a little more sense when dealing with order of application/selectors/casting. svn: r346 --- collects/honu/doc.txt | 4 ++-- collects/honu/parsers/parse.ss | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/collects/honu/doc.txt b/collects/honu/doc.txt index 9ceca33440..cddf3fcdf8 100644 --- a/collects/honu/doc.txt +++ b/collects/honu/doc.txt @@ -255,9 +255,9 @@ NOTE: Here's the precedence and associativity of things above. LEFT | RIGHT | NONASSOC ----------+----------+----------- . | | - | : isa | - | | #n (tuple selector) | | ( (function application) + | | #n (tuple selector) + | : isa | | | !, - (un) * / % | | + - | | diff --git a/collects/honu/parsers/parse.ss b/collects/honu/parsers/parse.ss index e90628effe..129ee61de3 100644 --- a/collects/honu/parsers/parse.ss +++ b/collects/honu/parsers/parse.ss @@ -68,9 +68,9 @@ (left PLUS MINUS) (left TIMES DIV MOD) (nonassoc NOT UMINUS) ;; unary operators - (left O_PAREN) ;; this gives application a precedence - (nonassoc selector) (right COLON isa) + (nonassoc selector) + (left O_PAREN) ;; this gives application a precedence (left DOT)) (tokens keywords separators operators val-tokens lex-errors EOF for-prec) (error (lambda (a b stx start end)