Compiler/lexical analyzer: Difference between revisions

Line 6,891:
inpf := &input
outf := &output
if 1 <= *args & args[1] ~== "-" then inpf := open(args[1], "rt"){
if 2 <= *args & args[2] ~== "-" then outfinpf := open(args[21], "wtrt") |
stop("cannot open ", args[1], " for input")
}
if 2 <= *args & args[2] ~== "-" then {
outf := open(args[2], "wt") |
stop("cannot open ", args[2], " for output")
}
 
pushback_buffer := []
1,448

edits