On Mon, 12 Jul 2010 13:23:22 -0300 Leandro Pereira <lean...@profusion.mobi> said:
> Raster, > > On Sun, Jul 11, 2010 at 10:40 PM, Carsten Haitzler <ras...@rasterman.com> > wrote: > > > > i agree. though my take on it is that i'd prefer it to be done as part of > > the c src like this: > > > > This was not done because I'd like to use the same .geneet files for > other languages: one input generates source for C, Python, > whatever-else-someone-needs. This is pretty similar to, for example, > Google's protobuf generators[1], and I like the approach of it being > language-agnostic, even though I understand your point of easily > keeping the structures in sync with the structures in the C source > file. > > Adding non-encoded data is simple enough: a "noencode" keyword could > be added to variables to opt them out of being encoded in the eet file > (but still write the getters/setters/etc). In fact, this is already > implemented :) > > [1] http://code.google.com/p/protobuf/ hmmm maybe a compromise. both python and c and c++ and nigh on every lang supports commenting of some form. all you need is for geneet to know how to strip out comments. right? c/c++: "/* eet:" <geneet string here> "*/" c99/gcc/c++ "c+= style": "// eet:" <geneet string here> "\n" python: "# eet:" <geneet string here> "\n" lua: "-- eet:" <geneet string here> "\n" etc. etc. - you just need to take input file and throw out all content outside the above snippets. the resulting filtered content is the geneet core. you just need that geneet format to be simple enough to stick in such comments without problems. much nicer and now extensible for nigh on any languages? -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel