comparison src/oct-parse.yy @ 11572:7d6d8c1e471f

Grammarcheck Texinfo for files in src directory.
author Rik <octave@nomad.inbox5.com>
date Wed, 19 Jan 2011 17:51:22 -0800
parents fd0a3ac60b0e
children 12df7854fa7c
comparison
equal deleted inserted replaced
11571:0e414f837c58 11572:7d6d8c1e471f
3814 \n\ 3814 \n\
3815 @example\n\ 3815 @example\n\
3816 autoload (\"foo\", \"bar.oct\");\n\ 3816 autoload (\"foo\", \"bar.oct\");\n\
3817 @end example\n\ 3817 @end example\n\
3818 \n\ 3818 \n\
3819 @noindent\n\
3819 will load the function @code{foo} from the file @code{bar.oct}. The above\n\ 3820 will load the function @code{foo} from the file @code{bar.oct}. The above\n\
3820 when @code{bar.oct} is not in the same directory or uses like\n\ 3821 when @code{bar.oct} is not in the same directory or uses like\n\
3821 \n\ 3822 \n\
3822 @example\n\ 3823 @example\n\
3823 autoload (\"foo\", file_in_loadpath (\"bar.oct\"))\n\ 3824 autoload (\"foo\", file_in_loadpath (\"bar.oct\"))\n\
4011 } 4012 }
4012 } 4013 }
4013 4014
4014 DEFUN (mfilename, args, , 4015 DEFUN (mfilename, args, ,
4015 "-*- texinfo -*-\n\ 4016 "-*- texinfo -*-\n\
4016 @deftypefn {Built-in Function} {} mfilename ()\n\ 4017 @deftypefn {Built-in Function} {} mfilename ()\n\
4017 @deftypefnx {Built-in Function} {} mfilename (@code{\"fullpath\"})\n\ 4018 @deftypefnx {Built-in Function} {} mfilename (@code{\"fullpath\"})\n\
4018 @deftypefnx {Built-in Function} {} mfilename (@code{\"fullpathext\"})\n\ 4019 @deftypefnx {Built-in Function} {} mfilename (@code{\"fullpathext\"})\n\
4019 Return the name of the currently executing file. At the top-level,\n\ 4020 Return the name of the currently executing file. At the top-level,\n\
4020 return the empty string. Given the argument @code{\"fullpath\"},\n\ 4021 return the empty string. Given the argument @code{\"fullpath\"},\n\
4021 include the directory part of the file name, but not the extension.\n\ 4022 include the directory part of the file name, but not the extension.\n\
4205 @deftypefn {Built-in Function} {} feval (@var{name}, @dots{})\n\ 4206 @deftypefn {Built-in Function} {} feval (@var{name}, @dots{})\n\
4206 Evaluate the function named @var{name}. Any arguments after the first\n\ 4207 Evaluate the function named @var{name}. Any arguments after the first\n\
4207 are passed on to the named function. For example,\n\ 4208 are passed on to the named function. For example,\n\
4208 \n\ 4209 \n\
4209 @example\n\ 4210 @example\n\
4211 @group\n\
4210 feval (\"acos\", -1)\n\ 4212 feval (\"acos\", -1)\n\
4211 @result{} 3.1416\n\ 4213 @result{} 3.1416\n\
4214 @end group\n\
4212 @end example\n\ 4215 @end example\n\
4213 \n\ 4216 \n\
4214 @noindent\n\ 4217 @noindent\n\
4215 calls the function @code{acos} with the argument @samp{-1}.\n\ 4218 calls the function @code{acos} with the argument @samp{-1}.\n\
4216 \n\ 4219 \n\
4440 \n\ 4443 \n\
4441 If an error occurs during the evaluation of @var{try} the @var{catch}\n\ 4444 If an error occurs during the evaluation of @var{try} the @var{catch}\n\
4442 string is evaluated, as the following example shows:\n\ 4445 string is evaluated, as the following example shows:\n\
4443 \n\ 4446 \n\
4444 @example\n\ 4447 @example\n\
4448 @group\n\
4445 eval ('error (\"This is a bad example\");',\n\ 4449 eval ('error (\"This is a bad example\");',\n\
4446 'printf (\"This error occurred:\\n%s\\n\", lasterr ());');\n\ 4450 'printf (\"This error occurred:\\n%s\\n\", lasterr ());');\n\
4447 @print{} This error occurred:\n\ 4451 @print{} This error occurred:\n\
4448 This is a bad example\n\ 4452 This is a bad example\n\
4453 @end group\n\
4449 @end example\n\ 4454 @end example\n\
4450 @end deftypefn") 4455 @end deftypefn")
4451 { 4456 {
4452 octave_value_list retval; 4457 octave_value_list retval;
4453 4458