ev3dev / ev3dev-lang

(deprecated) language bindings for ev3dev sensors, motors, LEDs, etc.
GNU General Public License v2.0
56 stars 39 forks source link

Notes on possible functionality improvements to autogen #128

Open WasabiFan opened 8 years ago

WasabiFan commented 8 years ago

Here's a quick list of features I think it might be worth adding (for a TODO list / general discussion if needed):

doAThing();
//~autogen
doOtherImportantThing({{myClass.myProp}});
//~autogen
ddemidov commented 8 years ago

Ability to mark sections of code to be templated inline

What will happen to this after the first generator run? The liquid code will be replaced by normal code, right? So the code has no special meaning to autogen system, and subsequent generator runs won't be able to update the code?

WasabiFan commented 8 years ago

That's my "slightly different syntax" note :wink: I'm still thinking about it -- do you have any ideas there? My hope was that it would be autocompleted and syntax highlighted by an IDE normally, so it couldn't just be in a comment... hmmmm :confused:

ddemidov commented 8 years ago

I have no ideas. I don't see how we can make same code to be accepted both by compiler/interpreter and autogen unless its in a comment.