Schrodinger's token

Citation
J. Aycock et Rn. Horspool, Schrodinger's token, SOFTW PR EX, 31(8), 2001, pp. 803-814
Citations number
37
Categorie Soggetti
Computer Science & Engineering
Journal title
SOFTWARE-PRACTICE & EXPERIENCE
ISSN journal
00380644 → ACNP
Volume
31
Issue
8
Year of publication
2001
Pages
803 - 814
Database
ISI
SICI code
0038-0644(20010710)31:8<803:ST>2.0.ZU;2-U
Abstract
A common problem when writing compilers for programming languages or little , domain-specific languages is that an input token may have several interpr etations, depending on context. Solutions to this problem demand programmer intervention, obfuscate the language's grammar, and may introduce subtle b ugs. We present a technique which is simple and without the above drawbacks -allowing a token to simultaneously have different types-and show how it ca n be applied to areas such as little language processing and fuzzy parsing. We also describe ways that compiler tools can support this technique. Copy right (C) 2001 John Wiley & Sons, Ltd.