rewrite of stan mode as a cc-mode derived language