nickel icon indicating copy to clipboard operation
nickel copied to clipboard

Add lua , c , c++ , js , python , go to format options

Open rudywasfound opened this issue 1 year ago • 5 comments
trafficstars

the thing is explained above

rudywasfound avatar Sep 15 '24 15:09 rudywasfound

Also can you add something like lua to nickel and toml to nickel , would be alot helpful thank you

rudywasfound avatar Sep 15 '24 15:09 rudywasfound

Hello, I think the issue is missing a bit of context. What do you mean by "format options"? Are talking about the --format argument of nickel export? In that case, what does this mean to export a record to e.g. C++?

Or maybe I should put it differently: what are you trying to do precisely, so that we can understand better what we could do about it.

yannham avatar Sep 16 '24 08:09 yannham

i need more format options , even if you cant add c , c++ in that its okay , but can you add lua , go , python and js to it? yes im talking about nickel export the --format flag , i can also help yall but im not familiar with the codebase right now understanding , the reason why i need it is because im kinda using this lang as a main language for my independent distro

rudywasfound avatar Sep 16 '24 08:09 rudywasfound

I think my question is what do you want to do with the exported data? For example, in Python, wouldn't that be much easier to just export to JSON and read the JSON from Python to turn that into a dictionary? I would imagine that Lua can load JSON easily as well.

I can understand that for compiled language it's a bit different if you want your config to be available at compile-time.

yannham avatar Sep 16 '24 08:09 yannham

reading json is easy in python

rudywasfound avatar Sep 16 '24 10:09 rudywasfound

maybe if python got libs for it

rudywasfound avatar Jan 16 '25 13:01 rudywasfound

I think I'm going to close this one for now, because I'm not sure to understand exactly what feature is asked. A bunch of examples and a clear scope would help here, beyond nickel-to-xxx or xxx-to-nickel, which can range for simple translation tools to full fledged transpilers/compilers.

yannham avatar Jan 23 '25 14:01 yannham