parsing infrastructure

Signed-off-by: kardan <kardan@riseup.net>