Dot-paren syntax no longer allowed in validation function expressions And it doesn't seem like the current Matlab grammar supports classdef statements at all? They've been around for a while. Would ...
(Since this increases the resulting script size, a separate "lite" version is also available which excludes function names detection). The project was inspired by the similar Mathematica.SE syntax ...