mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
Initial Commit
This commit is contained in:
24
examples/syntax.pork
Normal file
24
examples/syntax.pork
Normal file
@ -0,0 +1,24 @@
|
||||
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
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user