Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.
-
Upload
derick-norton -
Category
Documents
-
view
217 -
download
1
Transcript of Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.
![Page 1: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/1.jpg)
Oberon
Oral Exam English
![Page 2: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/2.jpg)
index
The creatorThe historyThe useThe syntaxAn exampleConclusion
![Page 3: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/3.jpg)
The creator - Niklaus Wirth
Swiss computer scientistborn February 1934Academic history
Electronics Engineering (ETH in Zürich)Master degree from Laval University ,
CanadaPh.D from University of California Berkeley
![Page 4: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/4.jpg)
The creator - Niklaus Wirth
Assistant professor Comp Science at Stanford University and University of Zürich
Prof Informatics at ETH ZürichChief designer of Algol W, Pascal,
Modula, Modula-2, and Oberon
![Page 5: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/5.jpg)
history
ALGOL – 60’sPascal – 70’s (first OO)Modula / Modula-2 –- 80’s (Modules)Oberon / Oberon-2 –- 80’s-90’s (OO)
![Page 6: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/6.jpg)
The use
Pascal’s syntax, styleMore powerVery clear structureObject-Oriented20 years experienceExecutable problemUsed for teaching
![Page 7: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/7.jpg)
The syntax - introduction
Case sensitive Line end ; Comment (* *)
MODULE Hello;(* first program *)IMPORT Out;
PROCEDURE Do*BEGIN
Out.String(“Hello”);Out.Ln;
END Do;
END Hello;
![Page 8: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/8.jpg)
The syntax – Programme Structure
MODULE Hello;(* first program *)IMPORT Out;
PROCEDURE Do*BEGIN
Out.String(“Hello”);Out.Ln;
END Do;
END Hello;
MODULE PROCEDURE
BEGIN END
predefined words
![Page 9: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/9.jpg)
The syntax – VAR & CONST
Predefined section Marked by “VAR” Varname : TYPE; Assignment operator
:= constants in
“CONST” section
PROCEDURE Vartest*CONST
numb = 6;VAR
a : INTEGER;b : REAL;c : REAL;
BEGINa := 3;c := numb*a;Out.Real(c);Out.Ln;
END Vartest;
![Page 10: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/10.jpg)
The syntax - Datatypes
BOOLEAN TRUE / FALSECHAR ASCIISHORTINT -128...127INTEGER -32768...32767LONGINT -2E+9...2E+9REAL -3,4E+38...3.4E+38
![Page 11: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/11.jpg)
The syntax – Loops / Conditions
WHILEWHILE (var1 < 3) DO
var2 := var2 + 1;
END;
REPEATREPEAT
var2 := var2 + 1;
UNTIL (var1 < 3);
LOOPLOOP
var2 := var2 + 1;
EXIT;
END;
IFIF (var1 = 3) THEN
Out.String(“Hurray”);
ELSE
Out.String(“Booh”);
END;
CASECASE var1 OF
1 : Out.String(“1”);
| 2 : Out.String(“2”);
| 3 : Out.String(“3”);
ELSE
Out.String(“none”);
END;
![Page 12: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/12.jpg)
![Page 13: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/13.jpg)
![Page 14: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/14.jpg)
![Page 15: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/15.jpg)
Example – GFX engine
Very powerful languageExample : my GFX engine
5 months experience in OberonNo other programming background
Many GFX possibilities
![Page 16: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/16.jpg)
Example – GFX engine
Dynamic 3D Object Rendered by Oberon Backface culling Z-buffer Shading
![Page 17: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/17.jpg)
Example – GFX examples
![Page 18: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/18.jpg)
Conclusion
Structured, Compact, PowerfulMany possible compilersDownside : Executable filesUsed for teaching
![Page 19: Oberon Oral Exam English. index The creator The history The use The syntax An example Conclusion.](https://reader035.fdocuments.net/reader035/viewer/2022070413/5697bf9c1a28abf838c935c1/html5/thumbnails/19.jpg)
Thank you for your attention
Any questions?