<< numeric types Interpreter functions parsestring >>

parsefile


Parse a Nelson file.


Syntax


status = parsefile(filename)

Input argument


filename

a string: a filename to parse.

Output argument


status

a string: 'script', 'function', 'error'.

Description


parsefile parse a file and returns if it is a valid script, a valid function or an error.

Example


parsefile([nelsonroot(), '/etc/startup.m'])
parsefile([nelsonroot(), '/modules/data_structures/functions/cellstr.m'])

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< numeric types Interpreter functions parsestring >>