mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-18 13:00:08 +00:00
36 lines
974 B
Plaintext
36 lines
974 B
Plaintext
namespace test.all : <"Something">
|
|
version "${version.ok}"
|
|
|
|
type ObservationPrimitive:
|
|
observationPrimitive int (1..1)
|
|
condition important: <"This is an important condition">
|
|
observationPrimitive < 0
|
|
|
|
|
|
func UsingFunctions: <"This function will use the other functions">
|
|
inputs:
|
|
val ObservationPrimitive (1..1)
|
|
bol boolean (1..1)
|
|
output:
|
|
valuation ObservationPrimitive(0..*)
|
|
|
|
assign-output: if bol then Something (bol, val) else SomethingElse (1, 2, val)
|
|
|
|
func Something: <"asd">
|
|
inputs:
|
|
equity1 boolean (1..1)
|
|
valuationTime ObservationPrimitive (1..1)
|
|
output:
|
|
valuation ObservationPrimitive (0..*)
|
|
|
|
assign-output: if True and False then valuationTime
|
|
|
|
func SomethingElse: <"dsa">
|
|
inputs:
|
|
num1 int (1..1)
|
|
num2 int (0..1)
|
|
valuationTime ObservationPrimitive (1..1)
|
|
output:
|
|
valuation ObservationPrimitive (0..1)
|
|
|
|
assign-output: if True and False then valuationTime |