Handling Multiple Language Contexts by Subtractive Context Switching

  • Markus Löberbauer

Research output: Chapter in Book/Report/Conference proceedingConference proceedingspeer-review

Abstract

We propose a solution for analyzing programs with multiple language contexts as they occur, for example, in C# 3.0. C# 3.0 has two contexts: the normal C# context and the language integrated query (Linq) context, which are basically the same, but Linq has some additional keywords that are treated as identifiers in the C# context. We demonstrate our solution by using the compiler generator Coco/R, which provides no support for enabling or disabling tokens in a grammar, as tokens are a global property of a programming language. We show how to handle additional tokens on top of the infrastructure provided by Coco/R.
Original languageEnglish
Title of host publication6th International Symposium on Intelligent Systems and Informatics
PublisherIEEE Explore
Number of pages4
Publication statusPublished - Sept 2008

Fields of science

  • 102 Computer Sciences
  • 102009 Computer simulation
  • 102011 Formal languages
  • 102013 Human-computer interaction
  • 102029 Practical computer science
  • 102022 Software development
  • 102024 Usability research

Cite this