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

Author

Allan CORNET

Last updated