Implement simple rule parsing