mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-18 21:10:07 +00:00
kind of working,
still needs testing. Added output return coercion in expression Fixed formatting bugs
This commit is contained in:
@@ -1,13 +1,21 @@
|
||||
namespace test.period : <"Something">
|
||||
version "${version.ok}"
|
||||
|
||||
enum PeriodEnum: <"The enumerated values to specified the period, e.g. day, week.">
|
||||
D displayName "day" <"Day">
|
||||
M displayName "month" <"Month">
|
||||
Y displayName "year" <"Year">
|
||||
|
||||
type Period: <"description">
|
||||
periodMultiplier int (1..1) <"A time period multiplier, e.g. 1, 2 or 3 etc. A negative value can be used when specifying an offset relative to another date, e.g. -2 days.">
|
||||
testMany boolean (0..*) <"Test many">
|
||||
testSome boolean (1..*) <"Test some">
|
||||
testMaybeOne int (0..1) <"Test zero or one">
|
||||
type ExchangeRate:
|
||||
from int (1..1)
|
||||
to int (1..1)
|
||||
|
||||
|
||||
type Obs:
|
||||
constant number (0..1)
|
||||
exchangeRate ExchangeRate (0..1)
|
||||
condition: one-of
|
||||
|
||||
func Konst:
|
||||
inputs:
|
||||
constant number (1..1)
|
||||
output:
|
||||
observable Obs (1..1)
|
||||
assign-output observable -> constant:
|
||||
constant
|
||||
Reference in New Issue
Block a user