fixes for ANTLR API file, adding parsing of API files in NoPLc but not finished yet