Added template method on ASParser.