AI-Driven Statutory Reasoning via Software Engineering Methods