Skip to content
Snippets Groups Projects
Commit 858879e5 authored by Alexander Schultheiß's avatar Alexander Schultheiß
Browse files

Updated demorgan file

parent 06a91f5e
Branches
No related merge requests found
......@@ -21,6 +21,13 @@ bool morgan22(bool a, bool b) {
return not(a) || not(b);
}
float dummyFloat(float a) {
float b = 1.0;
float c = .5;
float d = 1e10;
return a * 1.2f;
}
void main() {
bool a = true;
bool b = true;
......
......@@ -101,6 +101,35 @@ Id: "b"
RParen: ")"
Semicolon: ";"
RBrace: "}"
KwFloat: "float"
Id: "dummyFloat"
LParen: "("
KwFloat: "float"
Id: "a"
RParen: ")"
LBrace: "{"
KwFloat: "float"
Id: "b"
Assign: "="
ConstFloat: "1.0"
Semicolon: ";"
KwFloat: "float"
Id: "c"
Assign: "="
ConstFloat: ".5"
Semicolon: ";"
KwFloat: "float"
Id: "d"
Assign: "="
ConstFloat: "1e10"
Semicolon: ";"
KwReturn: "return"
Id: "a"
Asterisk: "*"
ConstFloat: "1.2"
Id: "f"
Semicolon: ";"
RBrace: "}"
KwVoid: "void"
Id: "main"
LParen: "("
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment