antlr - Can Xtext be used for parsing general purpose programming languages? -
i'm developing general-purpose agent-based programming language (its syntaxt inspired java, , using object in language).
since beginning of project doubtful fact of using antlr or xtext. @ time found out xtext implementing subset of feature of antlr. decided use anltr our language losing possibility have full-fledged eclipse editor free our language (such nice features provided xtext).
however, best of knowledge, summer xtext project has done big step forward. quoting link:
what limitations of xtext?
sven: can implement kind of programming language or dsl xtext. there 1 exception, if need use called 'semantic predicates' rather complicated thing don't think worth being explained here. few languages need concept. prominent example c/c++. want topic next release.
and reinforced in xtext documentation:
what xtext? no matter if want create small textual domain-specific language (dsl) or want implement full-blown general purpose programming language. xtext can create own languages in snap. if have existing language lacks decent tool support, can use xtext create sophisticated eclipse-based development environment providing editing experience known modern java ides in surprisingly short amount of time. call xtext language development framework.
if xtext has got rid of past limitations why still not possible find complex xtext grammar best known programming languages (java, c#, etc.)?
on antlr website can find tons of such grammar examples, concerns xtext instead sample able find 1 reported in documentation. maybe xtext still not mature used implementing general purpose programming language? i'm bit worried this... not start re-write grammar in xtext recognize not suited that.
i think nobody implemented java or c++ because lot of work (even xtext) , existing tools , compilers excellent. however, have @ xbase , xtend, expression language ship xtext. built xtext , quite proof can build xtext. have done in 4 person months.
i did couple of screencasts on xtend:
http://blog.efftinge.de/2011/03/xtend-screencast-part-1-basics.html
http://blog.efftinge.de/2011/03/xtend-screencast-part-2-switch.html
http://blog.efftinge.de/2011/03/xtend-screencast-part-3-rich-strings-ie.html
note, can embed xbase expressions language.
Comments
Post a Comment