mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-18 21:10:07 +00:00
Added support for multiple namespaces and imports
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
namespace cdm.main : <"Something">
|
||||
namespace test.all : <"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 extends TestType: <"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 TestType (0..*) <"Test many">
|
||||
testSome TestSomeType (1..*) <"Test some">
|
||||
testMaybeOne TestZeroOneType (0..1) <"Test zero or one">
|
||||
import test.period.*
|
||||
|
||||
type TestType:
|
||||
testType int (1..1)
|
||||
13
resources/Rosetta/test-period.rosetta
Normal file
13
resources/Rosetta/test-period.rosetta
Normal file
@@ -0,0 +1,13 @@
|
||||
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">
|
||||
Reference in New Issue
Block a user