Grammatical Aspects for Language Descriptions

Computer Science – Programming Languages

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

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

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

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.

Rate now

     

Profile ID: LFWR-SCP-O-88358

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.