Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Functions | |
pkgs_funGetFlag (iFlag) | |
Get a flag value string. More... | |
pkgs_funGetSource (fPkg, pos) | |
Returns the source of a function (or other Scol definition objects). These arguments can be found by the following functions : More... | |
pkgs_funSearchFromName (szFunName, lFlags, isSensitive, isWhole) | |
Search the definition of a function (or a variable, a type, a Comm ...) in the current application packages. More... | |
pkgs_funSearchFromNameChn (chn, szFunName, lFlags, isSensitive, isWhole) | |
Search the definition of a function (or a variable, a type, a Comm ...) in a given channel. More... | |
pkgs_funSearchFromNameScol (fScol, szFunName, lFlags, isSensitive, isWhole) | |
Search the definition of a function (or a variable, a type, a Comm ...) in a given script launcher (typically a *.scol). More... | |
pkgs_funSetFlag (iFlag, szFlag) | |
Set a flag value string. This is helpfull when the source code has been written by a different way. Like "fun\nnameOfFunction\n(args)=". More... | |
pkgs_pkgFunList (chn) | |
Similar to the Scol function "_funlist" but its prototype is easier. More... | |
Package to load : lib/pkgs/fun.pkg
Dependancies :
pkgs_funSearchFromName | ( | szFunName | , |
lFlags | , | ||
isSensitive | , | ||
isWhole | |||
) |
Search the definition of a function (or a variable, a type, a Comm ...) in the current application packages.
The search is only on the packages loaded in the starting of the current application. For all loaded packages or the packages loaded in a given channel, use pkgs_funSearchFromNameChn. For search in loaded package by a launcher (typically a *.scol), use 'pkgs_funSearchFromNameScol'.
This is usefull for a programming editor or a debug application.
Prototype : fun [S [I r1] I I] [[I [[S [I r1]] r1]] r1]
S | : the name to find |
[I | r1] : a list of mode, a mode defines if the searched name is a function, a variable, etc. The mode can take the following values :
|
I | : the search is case-sensitive (PKGS_FUN_SENSITIVE) or case-insensitive (PKGS_FUN_INSENSITIVE) |
I | : the searched name is the whole name (PKGS_FUN_WHOLENAME) or a part of the name (PKGS_FUN_PARITALNAME) |
pkgs_funSearchFromNameChn | ( | chn | , |
szFunName | , | ||
lFlags | , | ||
isSensitive | , | ||
isWhole | |||
) |
Search the definition of a function (or a variable, a type, a Comm ...) in a given channel.
The search is only on the packages loaded in a channel. For search in loaded package by a launcher (typically a *.scol), use 'pkgs_funSearchFromName'. For search in loaded package by a launcher (typically a *.scol), use 'pkgs_funSearchFromNameScol'.
This is usefull for a programming editor or a debug application.
Prototype : fun [S [I r1] I I] [[I [[S [I r1]] r1]] r1]
S | : the name to find |
[I | r1] : a list of mode, a mode defines if the searched name is a function, a variable, etc. The mode can take the following values :
|
I | : the search is case-sensitive (PKGS_FUN_SENSITIVE) or case-insensitive (PKGS_FUN_INSENSITIVE) |
I | : the searched name is the whole name (PKGS_FUN_WHOLENAME) or a part of the name (PKGS_FUN_PARITALNAME) |
pkgs_funSearchFromNameScol | ( | fScol | , |
szFunName | , | ||
lFlags | , | ||
isSensitive | , | ||
isWhole | |||
) |
Search the definition of a function (or a variable, a type, a Comm ...) in a given script launcher (typically a *.scol).
The search is only on the packages loaded by this launcher.
This is usefull for a programming editor or a debug application.
Prototype : fun [S [I r1] I I] [[I [[S [I r1]] r1]] r1]
S | : the name to find |
[I | r1] : a list of mode, a mode defines if the searched name is a function, a variable, etc. The mode can take the following values :
|
I | : the search is case-sensitive (PKGS_FUN_SENSITIVE) or case-insensitive (PKGS_FUN_INSENSITIVE) |
I | : the searched name is the whole name (PKGS_FUN_WHOLENAME) or a part of the name (PKGS_FUN_PARITALNAME) |
pkgs_funSetFlag | ( | iFlag | , |
szFlag | |||
) |
Set a flag value string. This is helpfull when the source code has been written by a different way. Like "fun\nnameOfFunction\n(args)=".
Prototype : fun [I S] S
I | : a flag (mode), it should be one of these following value
|
S | : a string |
pkgs_funGetFlag | ( | iFlag | ) |
Get a flag value string.
Prototype : fun [I] S
I | : a flag (mode), it should be one of these following value
|
pkgs_pkgFunList | ( | chn | ) |
Similar to the Scol function "_funlist" but its prototype is easier.
http://www.scolring.org/files/doc_html/_funlist.html
See also (Syspack) :
http://www.scolring.org/files/doc_html/funType.html
http://www.scolring.org/files/doc_html/getInPackage.html
http://www.scolring.org/files/doc_html/getPackages.html
http://www.scolring.org/files/doc_html/scolAllFuns.html
http://www.scolring.org/files/doc_html/scolAllFunsWithArgs.html
http://www.scolring.org/files/doc_html/scolSearchInChn.html
http://www.scolring.org/files/doc_html/varType.html
Prototype : fun [Chn] [[S I I S] r1]
Chn | : any channel |
pkgs_funGetSource | ( | fPkg | , |
pos | |||
) |
Returns the source of a function (or other Scol definition objects). These arguments can be found by the following functions :
Prototype : fun [S I] S
S | : a package filename |
I | : a position |