Factorise the code to parse conditions of statements, i.e. an expression enclosed...
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 25 Apr 2012 10:36:37 +0000 (12:36 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 26 Apr 2012 07:57:53 +0000 (09:57 +0200)
commit67bf11ae9b232ba2d21c4611f1aad84d18e30937
tree9bf3572d68820823e24cab6f7657f1bfd5208701
parent3ebfcac30456a053d3eba3fb1a2df7b1e73668b8
Factorise the code to parse conditions of statements, i.e. an expression enclosed in parentheses.

This addresses several issues:
- No null pointer as condition anymore, if a if lacks its (.
- No anchor leak anymore, if a switch lacks its ).
- Better error recovery: No error statement anymore, if any part of a condition is missing.
- Less code duplication.
parser.c