Jump to content

Compiler/lexical analyzer: Difference between revisions

Line 9,704:
outf := FileStream.stdout
if 1 <= *args & args[1] ~== "-" then {
inpf := openFileStream(args[1], "r"FileOpt.RDONLY) | stop(&why)
}
if 2 <= *args & args[2] ~== "-" then {
outf := openFileStream(args[2], "w") | stopior(&why)FileOpt.WRONLY,
FileOpt.TRUNC,
FileOpt.CREAT)) | stop(&why)
}
 
1,448

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.