added syntax and scanning and parsing for concurrent threads.