Computer Science – Programming Languages
Scientific paper
2010-01-16
Computer Science
Programming Languages
Submitted to LDTA, 15 pages
Scientific paper
For the purposes of tool development, computer languages are usually described using context-free grammars with annotations such as semantic actions or pretty-printing instructions. These descriptions are processed by generators which automatically build software, e.g., parsers, pretty-printers and editing support. In many cases the annotations make grammars unreadable, and when generating code for several tools supporting the same language, one usually needs to duplicate the grammar in order to provide different annotations for different generators. We present an approach to describing languages which improves readability of grammars and reduces the duplication. To achieve this we use Aspect-Oriented Programming principles. This approach has been implemented in an open-source tool named Grammatic. We show how it can be used to generate pretty-printers and syntax highlighters.
No associations
LandOfFree
Grammatical Aspects for Language Descriptions does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.
If you have personal experience with Grammatical Aspects for Language Descriptions, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Grammatical Aspects for Language Descriptions will most certainly appreciate the feedback.
Profile ID: LFWR-SCP-O-88358