DocumentCode
3265540
Title
Handling multiple language contexts by subtractive context switching
Author
Löberbauer, M.
Author_Institution
Inst. for Syst. Software, Johannes Kepler Univ., Linz
fYear
2008
fDate
26-27 Sept. 2008
Firstpage
1
Lastpage
4
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.
Keywords
natural language processing; program diagnostics; programming languages; C# 3.0; Coco/R; compiler generator; grammar; keywords; language integrated query context; multiple language context handling; normal C# context; program analysis; programming language; subtractive context switching; tokens; Automata; Computer languages; Concrete; Production; Program processors; Switches; System software; Terminology; White spaces;
fLanguage
English
Publisher
ieee
Conference_Titel
Intelligent Systems and Informatics, 2008. SISY 2008. 6th International Symposium on
Conference_Location
Subotica
Print_ISBN
978-1-4244-2406-1
Electronic_ISBN
978-1-4244-2407-8
Type
conf
DOI
10.1109/SISY.2008.4664931
Filename
4664931
Link To Document