andyg
07/24/2022, 5:31 AMVampire
07/24/2022, 7:08 AMAlex
07/24/2022, 11:36 AMandyg
07/25/2022, 6:55 AMVampire
07/25/2022, 7:00 AMandyg
07/25/2022, 7:04 AMVampire
07/25/2022, 8:38 AMandyg
07/25/2022, 8:54 AMVampire
07/25/2022, 9:02 AMkotlinx.serialization
.
And I already told you that you use #scripting support for example.
Your DSL is a Kotlin Script and you evaluate it.
How exactly this is done depends on the concrete requirements, but I guess you should start with reading the documentation and then maybe ask in the proper channel.andyg
07/25/2022, 9:42 AM{ 'type':'car',
'model':'Subaru',
'parts':{
'tires':{'brand':'Yokohama', 'size':'285/35R19'},
'oil':{'brand':'Mobil 1', 'viscosity':'0W40'},
}
}
the users could submit something like this:
car {
model = 'subaru'
tires {
brand = 'Yokohama'
size = '285/35R19'
}
oil(brand = 'Mobil 1', viscosity = '0W40')
}
Vampire
07/25/2022, 10:07 AMI wish this was a helpful exchangeMe too, but you just repeat your inital question with different words multiple times and do not accept the answer I already understood when you asked the first time. Doesn't change my answer. And I never said it is "simple", I said it is "possible" and that you should read about and ask in #scripting on how to actually do it best.
David Saff
07/25/2022, 1:33 PMGuillaume Taffin
07/25/2022, 5:00 PMandyg
07/26/2022, 7:31 AMhtml {
and }
the end users wouldn't have the tooling (code completion, all the other advantages of an IDE) to rapidly build a valid object. I will look into this more however, thank you.Vampire
07/26/2022, 8:10 AMLukáš Kúšik
08/01/2022, 8:35 PMandyg
08/03/2022, 6:08 AM