Jump to content

M2000 Compiler Task: Difference between revisions

m
mNo edit summary
Line 677:
Append func, prti_:=lambda->{Print #-2, str$(sint(eval(stack_,sp)),0);:sp++}
Append func, prtc_:=lambda->{Print #-2, chrcode$(eval(stack_,sp));:sp++}
Rem : Form 120, 60 ' change console width X height to run Ascii Mandlebrot examlpeexample
\\ change Report with Print #-2, (report stop when scrolling 3/4 of height of console, waiting key or mouse key to continue)
ReportPrint #-2, "Virtual Assembly Code:"+{
}+a$
Print "Prepare Byte Code"
Line 783 ⟶ 784:
}
Form ! 120, 60
Refresh
Print "Lexical Analyzer" : Refresh
lexical_analyzer
Print "Syntaxl Analyzer" : Refresh
syntax_analyzer
Print "Code Generator" : Refresh
CodeGenerator
Virtual_Machine_Interpreter
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.