fixed counting line numbers; fixed parsing of preprocessor statements

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
handle case where parser returns nil

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
ObjC: fixed missing nil parameters; worked on improving the grammar

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>