add initial version of parser

*** NOT tested ***
add main.c