pork/examples/syntax.pork
2023-08-19 15:34:10 -07:00

25 lines
387 B
Plaintext

main = {
three = 3
two = 2
calculateSimple = {
(50 + three) * two
}
calculateComplex = {
three + two + 50
}
calculateSimpleResult = calculateSimple()
calculateComplexResult = calculateComplex()
list = [10, 20, 30]
trueValue = true
falseValue = false
[
calculateSimpleResult,
calculateComplexResult,
list,
trueValue,
falseValue
]
}