From 1e5b73f1387e2b238e15238604b20a21f4e109ef Mon Sep 17 00:00:00 2001
From: "Paul C. Buetow (mars.fritz.box)"
@@ -91,7 +95,7 @@
TODO file of the source distribution of Fype! 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. Fype is developed under the BSD license. See the COPYING file which is included in the source tree. 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 ;) 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 ;) 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 :)
NAME
@@ -78,9 +82,9 @@
SYNOPSES
-
Specifies an integer number
Specifies a double number
Specifies a string
May be an integer or a double number
May be of any type above
No type
It's a variable name or a procedure name or a function name
Converts any type to an integer
Converts any type to a double
Converts any type to a string
@@ -259,30 +253,26 @@ TODO file of the source distribution of Fype!
Fype knows the following control statements:
Runs the statements if the expression evaluates to a true value.
Runs the statements if the expression evaluates to a false value.
Runs the statements as long as the the expression evaluates to a true value.
Runs the statements as long as the the expression evaluates to a false value.
@@ -356,153 +346,132 @@ not.
Special string behavior: A string will get auto convertet into an integer.
Special string behavior: A string will get auto convertet into an integer.
Special string behavior: A string will get auto convertet into an integer.
Special string behavior: A string will get auto convertet into an integer.
Returns 1 if identifier has been defined. Returns 0 else.
Tries to undefine/delete the identifier. Returns 1 if success, otherwise 0 is returned.
This function returns the negative value of any
This function returns 1 if the argument is 0, otherwise it will return 0! If no argument is given, then 0 is returned!
This function always returns 1. The parameter is optional. -
-This function always returns 1. The parameter is optional.
# Prints out 1, because foo is not defined
if yes { say no defined foo; }
Exits the program with the exit status of 0
Exits the program with the specified exit status
Fork forks a subprocess. It returns 0 for the child process and the pid of the child process otherwise! Example:
-
my pid = fork;
-
if pid {
put "I am the parent process; child has the pid ";
say pid;
-
} ifnot pid {
say "I am the child process";
}
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!
Prints out the argument
Same as put, but also includes an ending newline
Just prints a newline
@@ -620,9 +585,7 @@ keyword in order to check if a procedure has been defined or not.
awk(1) cc(1) make(1)
-
-
awk(1) cc(1) make(1)