mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-18 21:10:07 +00:00
parsing works with path expressions
This commit is contained in:
@@ -11,6 +11,8 @@ type TestSomeType: <"description">
|
||||
|
||||
type TestZeroOneType extends Period:
|
||||
testZeroOneType int (1..1)
|
||||
condition important: <"This is an important condition">
|
||||
observationPrimitive < 0
|
||||
|
||||
type ObservationPrimitive:
|
||||
observationPrimitive int (1..1)
|
||||
|
||||
23
resources/Rosetta/test-multiple.rosetta
Normal file
23
resources/Rosetta/test-multiple.rosetta
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace test.multiple : <"Something">
|
||||
version "${version.ok}"
|
||||
|
||||
|
||||
type ExchangeRate:
|
||||
from int (1..1)
|
||||
to int (1..1)
|
||||
|
||||
type Obs:
|
||||
constant number (0..1)
|
||||
exchangeRate ExchangeRate (0..1)
|
||||
condition: one-of
|
||||
|
||||
func ExchangeRateFunc:
|
||||
inputs:
|
||||
from int (1..1)
|
||||
to int (1..1)
|
||||
output:
|
||||
observable Obs (1..1)
|
||||
assign-output observable -> exchangeRate -> from:
|
||||
from
|
||||
assign-output observable -> exchangeRate -> to:
|
||||
to
|
||||
Reference in New Issue
Block a user