image thumbnail

fparser: a pedestrian m-file parser and tokenizer

by

 

31 Aug 2003 (Updated )

lists ML-tokens and constructs (function, var, struct assignment) in a m-file or from a command line

fpartest.m
	foo='a';
	foo1=1;
	cc{foo1}.case = pi;
	cc{2} . 	case = pi;
	dd ( foo1 ) . foo = pi;dd( 2 ).(foo).foo = pi;
	hoo=[];
	datenum.foo.(foo)=pi;
	hoo.foo1.foo2=10;
	ioo.(foo).(foo)=10;
	strcmp(ioo.(foo).(foo),'foo');
	find(ioo.(foo).(foo)=='f');
	hoo.foo1.foo2 ...
	.* hoo.foo1.foo2
	exist('hoo.foo1.foo2') 
	dd=datenum(aei.data{i}.header_info.stop_time);

Contact us