Calling is() with no args causes an error

Fixed parser to handle cases where there are no rule components. (#5)