How to achieve context-sensitive char syntax?