aboutsummaryrefslogtreecommitdiff
path: root/src/interp/i-parser.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/i-parser.boot')
-rw-r--r--src/interp/i-parser.boot5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interp/i-parser.boot b/src/interp/i-parser.boot
index 10959f93..87132e30 100644
--- a/src/interp/i-parser.boot
+++ b/src/interp/i-parser.boot
@@ -71,7 +71,10 @@ collectParsedLines(s, p) ==
++ parse the whole file `file'. Returns a list of parse tree
++ containing full source location information.
parseInputFile file ==
- WITH_-OPEN_-FILE(st file, parseStream(st, file))
+ try
+ st := inputTextFile file
+ parseStream(st, file)
+ finally (if st ~= nil then close st)
++ Same as parseInputFile, but returns a parse form, instead of
++ of a parse tree, i.e. source location information left out.