VARIABLESSSS
This commit is contained in:
@@ -2,36 +2,17 @@
|
||||
"type": "Program",
|
||||
"statements": [
|
||||
{
|
||||
"ExpressionStatement": {
|
||||
"type": "ExpressionStatement",
|
||||
"expr": {
|
||||
"type": "InfixExpression",
|
||||
"left_node": {
|
||||
"type": "InfixExpression",
|
||||
"left_node": {
|
||||
"type": "InfixExpression",
|
||||
"left_node": {
|
||||
"type": "IntegerLiteral",
|
||||
"value": 5
|
||||
},
|
||||
"operator": "+",
|
||||
"right_node": {
|
||||
"type": "IntegerLiteral",
|
||||
"value": 5
|
||||
}
|
||||
},
|
||||
"operator": "*",
|
||||
"right_node": {
|
||||
"type": "IntegerLiteral",
|
||||
"value": 3
|
||||
}
|
||||
},
|
||||
"operator": "+",
|
||||
"right_node": {
|
||||
"type": "IntegerLiteral",
|
||||
"value": 2
|
||||
}
|
||||
}
|
||||
"AssignmentStatement": {
|
||||
"type": "AssignmentStatement",
|
||||
"name": {
|
||||
"type": "IdentifierLiteral",
|
||||
"value": "myVar"
|
||||
},
|
||||
"value": {
|
||||
"type": "IntegerLiteral",
|
||||
"value": 1
|
||||
},
|
||||
"value_type": "Bool"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
13
debug/ir.ll
Normal file
13
debug/ir.ll
Normal file
@@ -0,0 +1,13 @@
|
||||
; ModuleID = "main"
|
||||
target triple = "x86_64-pc-windows-msvc"
|
||||
target datalayout = ""
|
||||
|
||||
define i32 @"main"()
|
||||
{
|
||||
main_entry:
|
||||
%".2" = alloca float
|
||||
store float 0x3ff3ae1480000000, float* %".2"
|
||||
%".4" = alloca i32
|
||||
store i32 456, i32* %".4"
|
||||
ret i32 123
|
||||
}
|
||||
Reference in New Issue
Block a user