diff options
| author | Paul C. Buetow (mars.fritz.box) <paul@buetow.org> | 2014-06-22 11:53:34 +0200 |
|---|---|---|
| committer | Paul C. Buetow (mars.fritz.box) <paul@buetow.org> | 2014-06-22 11:53:34 +0200 |
| commit | 1e5b73f1387e2b238e15238604b20a21f4e109ef (patch) | |
| tree | bf6f2a088c697de244ef08749a5a3c4af69396a3 /docs/pod/fype.html | |
| parent | 342cc39469c7ad300096b9e90ba3adcec1f027a7 (diff) | |
add README.pod
Diffstat (limited to 'docs/pod/fype.html')
| -rw-r--r-- | docs/pod/fype.html | 145 |
1 files changed, 54 insertions, 91 deletions
diff --git a/docs/pod/fype.html b/docs/pod/fype.html index 0a709bb..121cbea 100644 --- a/docs/pod/fype.html +++ b/docs/pod/fype.html @@ -4,13 +4,15 @@ <head> <title>NAME</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> -<link rev="made" href="mailto:root@chuck.buetow.org" /> +<link rev="made" href="mailto:root@localhost" /> </head> <body style="background-color: white"> -<p><a name="__index__"></a></p> + <!-- INDEX BEGIN --> +<div name="index"> +<p><a name="__index__"></a></p> <ul> @@ -64,9 +66,11 @@ <li><a href="#website">WEBSITE</a></li> <li><a href="#see_also">SEE ALSO</a></li> </ul> + +<hr name="index" /> +</div> <!-- INDEX END --> -<hr /> <p> </p> <h1><a name="name">NAME</a></h1> @@ -78,9 +82,9 @@ <hr /> <h1><a name="synopses">SYNOPSES</a></h1> <dl> -<dt><strong><a name="item_fype__5b_2d_5bhsvtv_5d_5d_file_2efy"><strong>fype</strong> [-[hsvTV]] file.fy</a></strong> +<dt><strong><a name="fype_hsvtv_file_fy" class="item"><strong>fype</strong> [-[hsvTV]] file.fy</a></strong></dt> -<dt><strong><a name="item_fype__2de__22fype_code_string_3b_22"><strong>fype</strong> -e ``fype code string;''</a></strong> +<dt><strong><a name="fype_e_fype_code_string" class="item"><strong>fype</strong> -e "fype code string;"</a></strong></dt> </dl> <p> @@ -91,7 +95,7 @@ TODO file of the source distribution of Fype!</p> <p>Fype is a 32 bit scripting language created for fun. You can use it and comment on it if you like. You could also write patches and mail them to fype at dev dot buetow dot org! Or go visit the IRC channel #coding at irc.german-elite.net and ask rantanplan.</p> <p>Fype is developed under the BSD license. See the COPYING file which is included in the source tree.</p> -<p>Fype should be ``at least as good as AWK''. This does not mean it will be a replacement for AWK but it should support functions, loops and arrays like AWK does but with a different syntax. It should also get extension support like AWK has. I am not talking about GNU AWK but about New AWK, which is included in the *BSD distributions! Fype already has a few features which are not available in AWK. However, AWK has still many features which are not available in Fype as well ;)</p> +<p>Fype should be "at least as good as AWK". This does not mean it will be a replacement for AWK but it should support functions, loops and arrays like AWK does but with a different syntax. It should also get extension support like AWK has. I am not talking about GNU AWK but about New AWK, which is included in the *BSD distributions! Fype already has a few features which are not available in AWK. However, AWK has still many features which are not available in Fype as well ;)</p> <p>Fancy stuff like OOP or unicode or threading is not yet planed. But fancy stuff like function pointers and closures may be considered for one of the first releases of Fype :)</p> <p> </p> @@ -139,71 +143,61 @@ TODO file of the source distribution of Fype!</p> </p> <h2><a name="the_basic_data_types">The basic data types</a></h2> <dl> -<dt><strong><a name="item_integer"><em>integer</em></a></strong> +<dt><strong><a name="integer" class="item"><em>integer</em></a></strong></dt> <dd> <p>Specifies an integer number</p> </dd> -</li> -<dt><strong><a name="item_double"><em>double</em></a></strong> +<dt><strong><a name="double" class="item"><em>double</em></a></strong></dt> <dd> <p>Specifies a double number</p> </dd> -</li> -<dt><strong><a name="item_string"><em>string</em></a></strong> +<dt><strong><a name="string" class="item"><em>string</em></a></strong></dt> <dd> <p>Specifies a string</p> </dd> -</li> -<dt><strong><a name="item_number"><em>number</em></a></strong> +<dt><strong><a name="number" class="item"><em>number</em></a></strong></dt> <dd> <p>May be an integer or a double number</p> </dd> -</li> -<dt><strong><a name="item_any"><em>any</em></a></strong> +<dt><strong><a name="any" class="item"><em>any</em></a></strong></dt> <dd> <p>May be of any type above</p> </dd> -</li> -<dt><strong><a name="item_void"><em>void</em></a></strong> +<dt><strong><a name="void" class="item"><em>void</em></a></strong></dt> <dd> <p>No type</p> </dd> -</li> -<dt><strong><a name="item_identifier"><em>identifier</em></a></strong> +<dt><strong><a name="identifier" class="item"><em>identifier</em></a></strong></dt> <dd> <p>It's a variable name or a procedure name or a function name</p> </dd> -</li> </dl> <p> </p> <h2><a name="explicit_type_conversions">Explicit type conversions</a></h2> <dl> -<dt><strong><a name="item__28integer_29_integer_any">(<em>integer</em>) <strong>integer</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_integer_any" class="item">(<em>integer</em>) <strong>integer</strong> <em>any</em></a></strong></dt> <dd> <p>Converts any type to an integer</p> </dd> -</li> -<dt><strong><a name="item__28double_29_double_any">(<em>double</em>) <strong>double</strong> <em>any</em></a></strong> +<dt><strong><a name="double_double_any" class="item">(<em>double</em>) <strong>double</strong> <em>any</em></a></strong></dt> <dd> <p>Converts any type to a double</p> </dd> -</li> -<dt><strong><a name="item__28string_29_string_any">(<em>string</em>) <strong>string</strong> <em>any</em></a></strong> +<dt><strong><a name="string_string_any" class="item">(<em>string</em>) <strong>string</strong> <em>any</em></a></strong></dt> <dd> <p>Converts any type to a string</p> </dd> -</li> </dl> <p> </p> @@ -259,30 +253,26 @@ TODO file of the source distribution of Fype!</p> <h2><a name="control_statements">Control statements</a></h2> <p>Fype knows the following control statements:</p> <dl> -<dt><strong><a name="item_if__3cexpression_3e__7b__3cstatements_3e__7d">if <em><expression</em>> { <em><statements</em>> }</a></strong> +<dt><strong><a name="if_expression_statements" class="item">if <em><expression</em>> { <em><statements</em>> }</a></strong></dt> <dd> <p>Runs the statements if the expression evaluates to a true value.</p> </dd> -</li> -<dt><strong><a name="item_ifnot__3cexpression_3e__7b__3cstatements_3e__7d">ifnot <em><expression</em>> { <em><statements</em>> }</a></strong> +<dt><strong><a name="ifnot_expression_statements" class="item">ifnot <em><expression</em>> { <em><statements</em>> }</a></strong></dt> <dd> <p>Runs the statements if the expression evaluates to a false value.</p> </dd> -</li> -<dt><strong><a name="item_while__3cexpression_3e__7b__3cstatements_3e__7d">while <em><expression</em>> { <em><statements</em>> }</a></strong> +<dt><strong><a name="while_expression_statements" class="item">while <em><expression</em>> { <em><statements</em>> }</a></strong></dt> <dd> <p>Runs the statements as long as the the expression evaluates to a true value.</p> </dd> -</li> -<dt><strong><a name="item_until__3cexpression_3e__7b__3cstatements_3e__7d">until <em><expression</em>> { <em><statements</em>> }</a></strong> +<dt><strong><a name="until_expression_statements" class="item">until <em><expression</em>> { <em><statements</em>> }</a></strong></dt> <dd> <p>Runs the statements as long as the the expression evaluates to a false value.</p> </dd> -</li> </dl> <p> </p> @@ -356,153 +346,132 @@ not.</p> </p> <h2><a name="math">Math</a></h2> <dl> -<dt><strong><a name="item__28any_29_any__2b_any">(<em>any</em>) <em>any</em> <strong>+</strong> <em>any</em></a></strong> +<dt><strong><a name="any_any_any" class="item">(<em>any</em>) <em>any</em> <strong>+</strong> <em>any</em></a></strong></dt> <dd> <p>Special string behavior: A string will get auto convertet into an <em>integer</em>.</p> </dd> -</li> -<dt><strong><a name="item__28any_29_any__2d_any">(<em>any</em>) <em>any</em> <strong>-</strong> <em>any</em></a></strong> +<dt><strong><a name="any_any_any2" class="item">(<em>any</em>) <em>any</em> <strong>-</strong> <em>any</em></a></strong></dt> <dd> <p>Special string behavior: A string will get auto convertet into an <em>integer</em>.</p> </dd> -</li> -<dt><strong><a name="item__28any_29_any__2a_any">(<em>any</em>) <em>any</em> <strong>*</strong> <em>any</em></a></strong> +<dt><strong><a name="any_any_any3" class="item">(<em>any</em>) <em>any</em> <strong>*</strong> <em>any</em></a></strong></dt> <dd> <p>Special string behavior: A string will get auto convertet into an <em>integer</em>.</p> </dd> -</li> -<dt><strong><a name="item__28any_29_any__2f_any">(<em>any</em>) <em>any</em> <strong>/</strong> <em>any</em></a></strong> +<dt><strong><a name="any_any_any4" class="item">(<em>any</em>) <em>any</em> <strong>/</strong> <em>any</em></a></strong></dt> <dd> <p>Special string behavior: A string will get auto convertet into an <em>integer</em>.</p> </dd> -</li> </dl> <p> </p> <h2><a name="conditional">Conditional</a></h2> <dl> -<dt><strong><a name="item__28integer_29_any__3d_3d_any">(<em>integer</em>) <em>any</em> <strong>==</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_any" class="item">(<em>integer</em>) <em>any</em> <strong>==</strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_any__21_3d_any">(<em>integer</em>) <em>any</em> <strong>!=</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_any2" class="item">(<em>integer</em>) <em>any</em> <strong>!=</strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_any__3c_3d_any">(<em>integer</em>) <em>any</em> <strong><=</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_any3" class="item">(<em>integer</em>) <em>any</em> <strong><=</strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_any__3e_3d_any">(<em>integer</em>) <em>any</em> <strong>>=</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_any4" class="item">(<em>integer</em>) <em>any</em> <strong>>=</strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_any__3c_any">(<em>integer</em>) <em>any</em> <strong><</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_any5" class="item">(<em>integer</em>) <em>any</em> <strong><</strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_any__3e_any">(<em>integer</em>) <em>any</em> <strong>></strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_any6" class="item">(<em>integer</em>) <em>any</em> <strong>></strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_not_any">(<em>integer</em>) <strong>not</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_not_any" class="item">(<em>integer</em>) <strong>not</strong> <em>any</em></a></strong></dt> </dl> <p> </p> <h2><a name="definedness">Definedness</a></h2> <dl> -<dt><strong><a name="item__28integer_29_defined_identifier">(<em>integer</em>) <strong>defined</strong> <em>identifier</em></a></strong> +<dt><strong><a name="integer_defined_identifier" class="item">(<em>integer</em>) <strong>defined</strong> <em>identifier</em></a></strong></dt> <dd> <p>Returns 1 if <em>identifier</em> has been defined. Returns 0 else.</p> </dd> -</li> -<dt><strong><a name="item__28integer_29_undef_identifier">(<em>integer</em>) <strong>undef</strong> <em>identifier</em></a></strong> +<dt><strong><a name="integer_undef_identifier" class="item">(<em>integer</em>) <strong>undef</strong> <em>identifier</em></a></strong></dt> <dd> <p>Tries to undefine/delete the <em>identifier</em>. Returns 1 if success, otherwise 0 is returned.</p> </dd> -</li> </dl> <p> </p> <h2><a name="bitwise">Bitwise</a></h2> <dl> -<dt><strong><a name="item__28integer_29_any__3a_3c_any">(<em>integer</em>) <em>any</em> <strong>:<</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_any7" class="item">(<em>integer</em>) <em>any</em> <strong>:<</strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_any__3a_3e_any">(<em>integer</em>) <em>any</em> <strong>:></strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_any8" class="item">(<em>integer</em>) <em>any</em> <strong>:></strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_any_and_any">(<em>integer</em>) <em>any</em> <strong>and</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_and_any" class="item">(<em>integer</em>) <em>any</em> <strong>and</strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_any_or_any">(<em>integer</em>) <em>any</em> <strong>or</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_or_any" class="item">(<em>integer</em>) <em>any</em> <strong>or</strong> <em>any</em></a></strong></dt> -<dt><strong><a name="item__28integer_29_any_xor_any">(<em>integer</em>) <em>any</em> <strong>xor</strong> <em>any</em></a></strong> +<dt><strong><a name="integer_any_xor_any" class="item">(<em>integer</em>) <em>any</em> <strong>xor</strong> <em>any</em></a></strong></dt> </dl> <p> </p> <h2><a name="numeric">Numeric</a></h2> <dl> -<dt><strong><a name="item__28number_29_neg_number">(<em>number</em>) <strong>neg</strong> <em>number</em></a></strong> +<dt><strong><a name="number_neg_number" class="item">(<em>number</em>) <strong>neg</strong> <em>number</em></a></strong></dt> <dd> <p>This function returns the negative value of <em>any</em></p> </dd> -</li> -<dt><strong><a name="item__28integer_29_no__5binteger_5d">(<em>integer</em>) <strong>no</strong> [<em>integer</em>]</a></strong> +<dt><strong><a name="integer_no_integer" class="item">(<em>integer</em>) <strong>no</strong> [<em>integer</em>]</a></strong></dt> <dd> <p>This function returns 1 if the argument is 0, otherwise it will return 0! If no argument is given, then 0 is returned!</p> </dd> -</li> -<dt><strong><a name="item__28integer_29_yes__5binteger_5d">(<em>integer</em>) <strong>yes</strong> [<em>integer</em>]</a></strong> +<dt><strong><a name="integer_yes_integer" class="item">(<em>integer</em>) <strong>yes</strong> [<em>integer</em>]</a></strong></dt> <dd> -<p>This function always returns 1. The parameter is optional. -</p> -</dd> -<dd> +<p>This function always returns 1. The parameter is optional.</p> <pre> # Prints out 1, because foo is not defined if yes { say no defined foo; }</pre> </dd> -</li> </dl> <p> </p> <h2><a name="system">System</a></h2> <dl> -<dt><strong><a name="item__28void_29_end">(<em>void</em>) <strong>end</strong></a></strong> +<dt><strong><a name="void_end" class="item">(<em>void</em>) <strong>end</strong></a></strong></dt> <dd> <p>Exits the program with the exit status of 0</p> </dd> -</li> -<dt><strong><a name="item__28void_29_exit_integer">(<em>void</em>) <strong>exit</strong> <em>integer</em></a></strong> +<dt><strong><a name="void_exit_integer" class="item">(<em>void</em>) <strong>exit</strong> <em>integer</em></a></strong></dt> <dd> <p>Exits the program with the specified exit status</p> </dd> -</li> -<dt><strong><a name="item__28integer_29_fork">(<em>integer</em>) <strong>fork</strong></a></strong> +<dt><strong><a name="integer_fork" class="item">(<em>integer</em>) <strong>fork</strong></a></strong></dt> <dd> <p>Fork forks a subprocess. It returns 0 for the child process and the pid of the child process otherwise! Example:</p> -</dd> -<dd> <pre> my pid = fork;</pre> -</dd> -<dd> <pre> if pid { put "I am the parent process; child has the pid "; say pid;</pre> -</dd> -<dd> <pre> } ifnot pid { say "I am the child process"; }</pre> </dd> -</li> -<dt><strong><a name="item__28integer_29_gc">(<em>integer</em>) <strong>gc</strong></a></strong> +<dt><strong><a name="integer_gc" class="item">(<em>integer</em>) <strong>gc</strong></a></strong></dt> <dd> <p>Executes the garbage collector and returns the number of items freed! You may @@ -510,30 +479,26 @@ wonder why most of the time it will return a value of 0! Fype tries to free not needed memory asap. This may change in future versions in order to gain faster execution of scripts!</p> </dd> -</li> </dl> <p> </p> <h2><a name="i_o">I/O</a></h2> <dl> -<dt><strong><a name="item__28any_29_put_any">(<em>any</em>) <strong>put</strong> <em>any</em></a></strong> +<dt><strong><a name="any_put_any" class="item">(<em>any</em>) <strong>put</strong> <em>any</em></a></strong></dt> <dd> <p>Prints out the argument</p> </dd> -</li> -<dt><strong><a name="item__28any_29_say_any">(<em>any</em>) <strong>say</strong> <em>any</em></a></strong> +<dt><strong><a name="any_say_any" class="item">(<em>any</em>) <strong>say</strong> <em>any</em></a></strong></dt> <dd> <p>Same as put, but also includes an ending newline</p> </dd> -</li> -<dt><strong><a name="item__28void_29_ln">(<em>void</em>) <strong>ln</strong></a></strong> +<dt><strong><a name="void_ln" class="item">(<em>void</em>) <strong>ln</strong></a></strong></dt> <dd> <p>Just prints a newline</p> </dd> -</li> </dl> <p> </p> @@ -620,9 +585,7 @@ keyword in order to check if a procedure has been defined or not.</p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> -<p><code>awk(1)</code> <code>cc(1)</code> <code>make(1)</code> - -</p> +<p><code>awk(1)</code> <code>cc(1)</code> <code>make(1)</code></p> </body> |
