[Emulink] implemented new parser for Emucharts (the parser is automatically generated from a grammar using the Jison tool) + minor bugfixes