diff options
author | dos-reis <gdr@axiomatics.org> | 2009-06-01 17:54:16 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2009-06-01 17:54:16 +0000 |
commit | 569c20a430023be60c2b38f47bccc5810c6980aa (patch) | |
tree | e7929027ccfb4584225245b0839175b34f02328d /src/interp/parse.boot | |
parent | b56083910b371806c329bf4657c51db77f7040ef (diff) | |
download | open-axiom-569c20a430023be60c2b38f47bccc5810c6980aa.tar.gz |
Simplify compiler ast for `return' expressions.
* interp/parse.boot (parseReturn): Remove.
* interp/compiler.boot (compReturn): Tidy.
Diffstat (limited to 'src/interp/parse.boot')
-rw-r--r-- | src/interp/parse.boot | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/interp/parse.boot b/src/interp/parse.boot index e87d8906..278de20e 100644 --- a/src/interp/parse.boot +++ b/src/interp/parse.boot @@ -315,15 +315,6 @@ parseLeave t == ["leave",1,a] -parseReturn: %ParseForm -> %Form -parseReturn t == - t isnt ["return",a,:b] => systemErrorHere ["parseReturn",t] - a:= parseTran a - b:= parseTran b - b => - (if a^=1 then MOAN '"multiple-level 'return' not allowed"; ["return",1,:b]) - ["return",1,a] - parseJoin: %ParseForm -> %Form parseJoin t == t isnt ["Join",:l] => systemErrorHere ["parseJoin",t] @@ -496,7 +487,6 @@ for x in [["<=", :"parseLessEqual"],_ ["or", :"parseOr"],_ ["pretend", :"parsePretend"],_ ["@@",:"parseAtAt"],_ - ["return", :"parseReturn"],_ ["SEGMENT", :"parseSegment"],_ ["SEQ", :"parseSeq"],_ ["VCONS", :"parseVCONS"],_ |