yapp: a pedestrian Yet Another Parser Parser

版本 1.1.0.0 (8.6 KB) 作者: us
YAPP is a highly speed optimized input parser collecting unix-style option(s)/value(s)
532.0 次下载
更新时间 2010/5/8

查看许可证

YAPP: Yet Another Parser Parser

a highly speed optimized subroutine package
- !!!for programmers only!!!
- implements the old-style unix argument parsing model, which allows to assign
any user-definable number of arguments to an option flag and, therefore, differs
slightly from the now common property/value pair philosophy used in MATLAB

- parses a list of arguments, eg, varargin, for the occurrence of
unix-style options
prefixOPTION
which are defined in a simple option table CELL
and collects a user-definable number of arguments for their value containers
- option tables (minimally) consist of
a header, eg, 'option' '#args' 'defvals'
a body , eg, '+-num' 2 {'a',magic(3)}
they may be expanded by any number of user-definable columns with additional
information for the application, eg, description, function handles for
post-processing, and may, therefore, also serve as convenient vehicles to tune
the behavior of applications/computational engines according to different
initial settings
- option tables are easy to maintain and very versatile, eg, an application
may import a particular option table according to various criteria, eg, user,
task, etc from a specific .ini files
- the output structure returns a multitude of information regarding
options and their values as well as information about the dissected
argument list, which are useful for rapid post-processing, eg, with
MATLAB's inputParser or own models based on, eg, assigned function handles
- the parser's engine itself can be tuned in several ways, eg, bailout by
error or warning

the package contains these M-files
- yapp
the subroutines, which can be added to an application
- fopa
a Fast Option Parser YAPP wrapper stand-alone application, which
can be called from within another application using the simple
YAPP syntax
- fopat
to perform YAPP timing for several user-definable conditions

see also

>> help fopa
and the (partial) screenshot for information about the engine and i/o parameters

>> help fopat
on how to perform YAPP timing on a particular system

note: yapp.m does not contain help information as it is meant to be included as
a subroutine in another application

引用格式

us (2024). yapp: a pedestrian Yet Another Parser Parser (https://www.mathworks.com/matlabcentral/fileexchange/27435-yapp-a-pedestrian-yet-another-parser-parser), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Search Path 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

removed legacy code (user requests) with a raw speed-up of ~5%; now only works with r2007a+; version tag 08-May-2010 17:37:30

1.0.0.0