java - proving drop-down facilities in ANTLR -
in current project, developing domain specific language. instance, syntax of language following:
structs: tempstruct tempvalue : double; unitofmeasurement : string; abilities: sensors: temperaturesensor attribute responseformat : string; generate tempmeasurement : tempstruct; // forward reference of defined structs in above code fragment, can see tempstruct defined. requirement want facilitate dsl programmers drop down list of defined structure. so, programmer can select 1 structs drop down list.
i started working on antlr, not sure how can achieved in antlr. idea ? pointers , suggestions other tools welcomed writing dsl.
i provide answer of question. have received pointers our collaborators. may others.
tools create dsls , associated development environments:
xtext: - oaw xtext: framework textual {dsls}
-
spoofax:
the spoofax language workbench. rules declarative specification of languages , ides
http://strategoxt.org/view/spoofax/
other references:
- http://www.languageworkbenches.net
- http://splashcon.org/2011/program/demonstrations (cedalion, language of languages, testing domain-specific languages,
Comments
Post a Comment