1
0
mirror of https://gitlab.com/rnger/amath synced 2025-10-05 10:29:29 +00:00

Release 1.7.0

This commit is contained in:
Carsten Larsen
2017-03-11 23:37:45 +01:00
parent 76ed613e8d
commit 1757e0bcf1
243 changed files with 12160 additions and 4196 deletions

View File

@ -5,7 +5,7 @@
; ## ----------------------------------
; ##
; ## Generate code with:
; ## flexcat help.cd ../../src/localize/help.h=help.sd
; ## flexcat help.cd ../src/localize/help.h=help.sd
; ##
; ###################################################################################
; ## Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
@ -32,102 +32,111 @@
; ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
; ## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
; ###################################################################################
; message ID (ID number/min. string length/max. string length)
; native string
; ###################################################################################
; Introduction table - Symbol(0)
symzero (/500/)
Enter command or expression to evaluate.#NEWLINE##SYNTAXHIGHLIGHT#Example: 2+3-cos(3)#NORMALTEXT##NEWLINE# #NEWLINE#More help is available for designated topics.#NEWLINE#-------------------------------------------------#NEWLINE#functions Base functions.#NEWLINE#trigon Trigonometric functions.#NEWLINE#hyper Hyperbolic functions.#NEWLINE#complex Syntax for complex numbers.#NEWLINE#statements Available statements.#NEWLINE#operators Supported operators.#NEWLINE#-------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: help trigon#NEWLINE#
Enter command or expression to evaluate.#NEWLINE##SYNTAXHIGHLIGHT#Example: 2+3-cos(3)#NORMALTEXT##NEWLINE# #NEWLINE#More help is available for designated topics.#NEWLINE#-------------------------------------------------#NEWLINE#functions Base functions.#NEWLINE#trigon Trigonometric functions.#NEWLINE#hyper Hyperbolic functions.#NEWLINE#early Early trigonometric functions.#NEWLINE#complex Syntax for complex numbers.#NEWLINE#statements Available statements.#NEWLINE#operators Supported operators.#NEWLINE#-------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: help trigon#NEWLINE#
; Table of operators
symoperator (/400/)
-------------------------------------------------#NEWLINE# + Mathematical addition.#NEWLINE# - Mathematical subtraction.#NEWLINE# * Mathematical multiplication.#NEWLINE# / Mathematical division.#NEWLINE# ^ Mathematical exponentiation.#NEWLINE# = Assignment of variable values.#NEWLINE# | Absolute value of number. #NEWLINE#-------------------------------------------------#NEWLINE#
-------------------------------------------------#NEWLINE# + Mathematical addition.#NEWLINE# - Mathematical subtraction.#NEWLINE# * Mathematical multiplication.#NEWLINE# / Mathematical division.#NEWLINE# ^ Mathematical exponentiation.#NEWLINE# = Assignment of variable values.#NEWLINE# | Absolute value of number. #NEWLINE#-------------------------------------------------#NEWLINE#
; Table of functions
symfunction (/500/)
-------------------------------------------------#NEWLINE#abs Absolute value of number.#NEWLINE#sgn Mathematical signum function.#NEWLINE#round Round to nearest integer number.#NEWLINE#trunc Discard fraction part of number.#NEWLINE#floor Mathematical floor function.#NEWLINE#ceil Mathematical ceiling function.#NEWLINE#sqrt Square root function (exp 1/2).#NEWLINE#cbrt Cube root function (exp 1/3).#NEWLINE#lb Binary logarithm function (base 2).#NEWLINE#ln Natural logarithm function (base e).#NEWLINE#lg Common logarithm function (base 10).#NEWLINE#-------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: round(1.55)#NORMALTEXT##NEWLINE#
; Table of trigonometric functions
symtrigon (/500/)
-------------------------------------------------#NEWLINE#sin Trigonometric sine function.#NEWLINE#cos Trigonometric cosine function.#NEWLINE#tan Trigonometric tangent function.#NEWLINE#cot Trigonometric cotangent function.#NEWLINE#sec Trigonometric secant function.#NEWLINE#csc Trigonometric cosecant function.#NEWLINE#asin Inverse trigonometric sine function.#NEWLINE#acos Inverse trigonometric cosine function.#NEWLINE#atan Inverse trigonometric tangent function.#NEWLINE#acot Inverse trigonometric cotangent function.#NEWLINE#asec Inverse trigonometric secant function.#NEWLINE#acsc Inverse trigonometric cosecant function.#NEWLINE#-------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc #NEWLINE#instead of a.#NEWLINE#
-------------------------------------------------#NEWLINE#sin Trigonometric sine function.#NEWLINE#cos Trigonometric cosine function.#NEWLINE#tan Trigonometric tangent function.#NEWLINE#cot Trigonometric cotangent function.#NEWLINE#sec Trigonometric secant function.#NEWLINE#csc Trigonometric cosecant function.#NEWLINE#exsec Trigonometric exsecant function.#NEWLINE#excsc Trigonometric excosecant function.#NEWLINE#asin Inverse trigonometric sine function.#NEWLINE#acos Inverse trigonometric cosine function.#NEWLINE#atan Inverse trigonometric tangent function.#NEWLINE#acot Inverse trigonometric cotangent function.#NEWLINE#asec Inverse trigonometric secant function.#NEWLINE#acsc Inverse trigonometric cosecant function.#NEWLINE#exsec Inverse trigonometric exsecant function.#NEWLINE#excsc Inverse trigonometric excosecant function.#NEWLINE#-------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc #NEWLINE#instead of a.#NEWLINE#
; Table of hyperbolic functions
symhyper (/500/)
-------------------------------------------------#NEWLINE#sinh Hyperbolic sine function.#NEWLINE#cosh Hyperbolic cosine function.#NEWLINE#tanh Hyperbolic tangent function.#NEWLINE#coth Hyperbolic cotangent function.#NEWLINE#sech Hyperbolic secant function.#NEWLINE#csch Hyperbolic cosecant function. #NEWLINE#asinh Inverse hyperbolic sine function.#NEWLINE#acosh Inverse hyperbolic cosine function.#NEWLINE#atanh Inverse hyperbolic tangent function.#NEWLINE#acoth Inverse hyperbolic cotangent function.#NEWLINE#asech Inverse hyperbolic secant function.#NEWLINE#acsch Inverse hyperbolic cosecant function.#NEWLINE#-------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc #NEWLINE#instead of a.#NEWLINE#
; Table of statements
symstatement (/1000/)
---------------------------------------------------------#NEWLINE#clear Clear console window.#NEWLINE#def Define function.#NEWLINE#delete Delete variable or function.#NEWLINE#digits Set number of significant digits.#NEWLINE#eval Evaluate arithmetic expression.#NEWLINE#execute Execute statements in a file.#NEWLINE#functions Show list of user defined functions.#NEWLINE#input Change numeral input system (experimental).#NEWLINE#help Show basic help text.#NEWLINE#output Change numeral output system (experimental).#NEWLINE#list Show content of a directory.#NEWLINE#show Show content of a file.#NEWLINE#load Load variable and functions from file.#NEWLINE#save Save variable and functions to file.#NEWLINE#variables Show list of variables.#NEWLINE#version Show version string.#NEWLINE#memory Show internal memory usage.#NEWLINE#exit Exit program.#NEWLINE#---------------------------------------------------------#NEWLINE#The def and eval statements are optional. Functions and#NEWLINE#variables statements can be shorten to funcs and vars.#NEWLINE#
; Table of early trigonometric functions
symearly (/500/)
-------------------------------------------------#NEWLINE#ver Versed sine function.#NEWLINE#vcs Versed cosine function.#NEWLINE#cvs Coversed sine function.#NEWLINE#cvc Coversed cosine function.#NEWLINE#hv Haversed sine function.#NEWLINE#hvc Haversed cosine function.#NEWLINE#hcv Hacoversed sine function.#NEWLINE#hcc Hacoversed cosine function.#NEWLINE#aver Inverse versed sine function.#NEWLINE#avcs Inverse versed cosine function.#NEWLINE#acvs Inverse coversed sine function.#NEWLINE#acvc Inverse coversed cosine function.#NEWLINE#ahv Inverse haversed sine function.#NEWLINE#ahvc Inverse haversed cosine function.#NEWLINE#ahcv Inverse hacoversed sine function.#NEWLINE#ahcc Inverse hacoversed cosine function.#NEWLINE#-------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc #NEWLINE#instead of a.#NEWLINE#
; Help for complex numbers
symcomplex (/200/)
symcomplex (/20/)
Expressions with complex numbers are written using an i to denote#NEWLINE#the imaginary value. Complex numbers can seamlessly be mixed with#NEWLINE#real numbers.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: 2+3i#NEWLINE#Example: 2+3.2i*cos(-1i)+5/7#NEWLINE#
; Help for clear statement
symclear (/40/)
symclear (/20/)
The clear statement erases all text in the console window.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: clear#NEWLINE#
; Help for def statement
symdef (/200/)
symdef (/20/)
The def statement is used to define functions. When defining a function#NEWLINE#it is possible to omit the def keyword. Defined functions can be shown#NEWLINE#using the functions statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: def f(x)=2*x+3#NEWLINE#Optional syntax: f(x)=2*x+3#NEWLINE#
; Help for delete statement
symdelete (/250/)
symdelete (/20/)
The delete statement can delete variable and functions. To delete a#NEWLINE#single variable or functions use the name of the function or variable.#NEWLINE#To delete all functions or variables specify either the variable or#NEWLINE#function keyword.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: delete f(x)#NEWLINE#Syntax: delete variables#NEWLINE#
; Help for digits statement
symdigits (/150/)
symdigits (/20/)
The digits statement defines the displayed number of significant digits.#NEWLINE#To show current configuration use the digits statement without specifying#NEWLINE#the number.#NEWLINE# #SYNTAXHIGHLIGHT#Syntax: digits 7#NEWLINE#
; Help for eval statement
symeval (/80/)
symeval (/20/)
The eval statement evaluates an expression. When evaluating an expression#NEWLINE#it is possible to omit the eval keyword.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: eval 2.4*x+3.2#NEWLINE#Optional syntax: 2.4*x+3.2#NEWLINE#
; Help for execute statement
symexecute (/40/)
symexecute (/20/)
The execute statement reads the content of a file and execute all statements.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: execute "savedfile"#NEWLINE#
; Help for input statement
syminput (/120/)
syminput (/20/)
The input statement either changes or shows the how numeral input is interpreted.#NEWLINE#Possible input systems are: binary, octal, decimal and hexadecimal. Default is#NEWLINE#decimal. To use positional systems with other bases specify the base number.#NEWLINE#Numeral output system can be modified using the output statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: input hexadecimal#NEWLINE#Syntax: input 4#NEWLINE#
; Help for help statement
symhelp (/50/)
symhelp (/20/)
The help statement can be used to display help about topics and statements.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: help variables#NEWLINE#
; Help for output statement
symoutput (/120/)
symoutput (/20/)
The output statement either changes or shows the how numeral output is shown.#NEWLINE#Possible output systems are: binary, octal, decimal and hexadecimal. Default#NEWLINE#is decimal. To use positional systems with other bases specify the base number.#NEWLINE#Numeral input system can be modified using the input statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: output octal#NEWLINE#
; Help for list statement
symlist (/40/)
symlist (/20/)
No description is available for the list statement.#NEWLINE#
; Help for show statement
symshow (/40/)
symshow (/20/)
The show statement displays the content of a file.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: show "filetosee"#NEWLINE#
; Help for load statement
symload (/80/)
symload (/20/)
The load statement retrieves a set of defined variables and functions from#NEWLINE#a file. Variables and functions can be saved using the save statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: load "savedwork"#NEWLINE#
; Help for save statement
symsave (/80/)
symsave (/20/)
The save statement saves defined variables and functions to a file in a#NEWLINE#plain text format. Saved variables and functions can be retrieved using#NEWLINE#the load statement.#NEWLINE# #SYNTAXHIGHLIGHT#Syntax: save "worktokeep"#NEWLINE#
; Help for version statement
symversion (/40/)
symversion (/20/)
Show which version of amath is running.#NEWLINE#
; Help for about statement
symabout (/40/)
Show various information about the running version of amath.#NEWLINE#
; Help for license statement
symlicense (/20/)
Show license details.#NEWLINE#
; Help for memory statement
symmem (/40/)
symmem (/20/)
Show internal memory usage together with maximum usage.#NEWLINE#
; Help for prefs statement
symprefs (/40/)
symprefs (/20/)
There is no help for prefs statement now.#NEWLINE#
; Help for variable statement
symvariable (/40/)
symvariable (/20/)
The variable statement shows a list of variables in memory.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: variables#NEWLINE##NORMALTEXT#optional syntax: vars#NEWLINE#
; Help for exit statement
symexit (/40/)
symexit (/20/)
The exit statement shuts down amath.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: exit#NEWLINE#
; Help for constant epsilon
syme (/40/)
syme (/20/)
Euler's number is base of the exponential function which equals its own#NEWLINE#derivative. It is approximately equal to 2.71828.#NEWLINE##SYNTAXHIGHLIGHT#Example: ln(e)#NEWLINE#
; Help for constant pi
sympi (/40/)
sympi (/20/)
Pi is the ratio of the circumference of a circle to its diameter. Being an#NEWLINE#irrational number, pi cannot be expressed exactly as a common fraction.#NEWLINE#The value of pi is commonly approximated as #SYNTAXHIGHLIGHT#3.14159#NORMALTEXT#.#NEWLINE#
; Help for imaginary unit
symi (/40/)
symi (/20/)
The imaginary unit is denoted and commonly referred to as i.#NEWLINE#The imaginary unit is a number, which when multiplied#NEWLINE#by itself gives -1.#NEWLINE#
; Help for ins variable
symins (/40/)
symins (/20/)
No help is available for the ins variable#NEWLINE#
; Help for binary keyword
symbin (/40/)
symbin (/20/)
No help is available for the binary keyword#NEWLINE
; Help for octal keyword
symoct (/40/)
symoct (/20/)
No help is available for the octal keyword#NEWLINE
; Help for decimal keyword
symdec (/40/)
symdec (/20/)
No help is available for the decimal keyword#NEWLINE
; Help for hexadecimal keyword
symhex (/40/)
symhex (/20/)
No help is available for the hexadecimal keyword#NEWLINE

View File

@ -1,5 +1,5 @@
##stringtype C
/*
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
@ -26,27 +26,32 @@
* Generated with FlexCat. For more information, see:
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
*
*/
#ifndef AMATH_LOCALIZE_HELP_H
#define AMATH_LOCALIZE_HELP_H
/**
* @file help.h
* @file localize/help.h
* @brief Help texts for statement.
*
*
*/
#include "amath.h"
#include "platform.h"
#include "amathc.h"
#include "amatht.h"
#include "localize/lex.h"
#define symzero Symbol(0)
struct helptextdef {
struct helptextdef
{
int id;
Symbol symbol;
const char *text;
const char* text;
};
static const helptextdef helptexts[] = {

View File

@ -5,7 +5,7 @@
; ## ------------------------------------------
; ##
; ## Generate code with:
; ## flexcat ident.cd ../../src/localize/ident.h=ident.sd
; ## flexcat ident.cd ../src/localize/ident.h=ident.sd
; ##
; ###################################################################################
; ## Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
@ -32,73 +32,116 @@
; ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
; ## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
; ###################################################################################
abs (/40/)
; message ID (ID number/min. string length/max. string length)
; native string
; ###################################################################################
abs (/20/)
No help is available for this function.#NEWLINE#
sgn (/40/)
sgn (/20/)
No help is available for this function.#NEWLINE#
round (/40/)
round (/20/)
No help is available for this function.#NEWLINE#
trunc (/10/)
trunc (/20/)
No help is available for this function.#NEWLINE#
floor (/10/)
floor (/20/)
No help is available for this function.#NEWLINE#
ceil (/10/)
ceil (/20/)
No help is available for this function.#NEWLINE#
sqr (/10/)
sqr (/20/)
No help is available for this function.#NEWLINE#
cbr (/10/)
cbr (/20/)
No help is available for this function.#NEWLINE#
lb (/10/)
lb (/20/)
No help is available for this function.#NEWLINE#
ln (/10/)
ln (/20/)
No help is available for this function.#NEWLINE#
lg (/10/)
lg (/20/)
No help is available for this function.#NEWLINE#
sin (/10/)
sin (/20/)
No help is available for this function.#NEWLINE#
cos (/10/)
cos (/20/)
No help is available for this function.#NEWLINE#
tan (/10/)
tan (/20/)
No help is available for this function.#NEWLINE#
cot (/10/)
cot (/20/)
No help is available for this function.#NEWLINE#
sec (/10/)
sec (/20/)
No help is available for this function.#NEWLINE#
csc (/10/)
csc (/20/)
No help is available for this function.#NEWLINE#
asin (/10/)
asin (/20/)
No help is available for this function.#NEWLINE#
acos (/10/)
acos (/20/)
No help is available for this function.#NEWLINE#
atan (/10/)
atan (/20/)
No help is available for this function.#NEWLINE#
acot (/10/)
acot (/20/)
No help is available for this function.#NEWLINE#
asec (/10/)
asec (/20/)
No help is available for this function.#NEWLINE#
acsc (/10/)
acsc (/20/)
No help is available for this function.#NEWLINE#
sinh (/10/)
sinh (/20/)
No help is available for this function.#NEWLINE#
cosh (/10/)
cosh (/20/)
No help is available for this function.#NEWLINE#
tanh (/10/)
tanh (/20/)
No help is available for this function.#NEWLINE#
coth (/10/)
coth (/20/)
No help is available for this function.#NEWLINE#
sech (/10/)
sech (/20/)
No help is available for this function.#NEWLINE#
csch (/10/)
csch (/20/)
No help is available for this function.#NEWLINE#
asinh (/10/)
asinh (/20/)
No help is available for this function.#NEWLINE#
acosh (/10/)
acosh (/20/)
No help is available for this function.#NEWLINE#
atanh (/10/)
atanh (/20/)
No help is available for this function.#NEWLINE#
acoth (/10/)
acoth (/20/)
No help is available for this function.#NEWLINE#
asech (/10/)
asech (/20/)
No help is available for this function.#NEWLINE#
acsch (/10/)
acsch (/20/)
No help is available for this function.#NEWLINE#
ver (/20/)
The versed sine is an early appearing trigonometric function.#NEWLINE#It is equal to one minus the cosine.#NEWLINE#ver(x) = 1 - cos(x)#NEWLINE#
vcs (/20/)
The versed cosine is an early appearing trigonometric function.#NEWLINE#It is equal to one plus the cosine.#NEWLINE#ver(x) = 1 + cos(x)#NEWLINE#
cvs (/20/)
The coversed sine is an early appearing trigonometric function.#NEWLINE#It is equal to one minus the sine.#NEWLINE#ver(x) = 1 - sin(x)#NEWLINE#
cvc (/20/)
The coversed cosine is an early appearing trigonometric function.#NEWLINE#It is equal to one plus the sine.#NEWLINE#cvc(x) = 1 + sin(x)#NEWLINE#
hv (/20/)
No help is available for the haversed sine function.#NEWLINE#
hvc (/20/)
No help is available for the haversed cosine function.#NEWLINE#
hcv (/20/)
No help is available for the hacoversed sine function.#NEWLINE#
hcc (/20/)
No help is available for the hacoversed cosine function.#NEWLINE#
aver (/20/)
No help is available for this function.#NEWLINE#
avcs (/20/)
No help is available for this function.#NEWLINE#
acvs (/20/)
No help is available for this function.#NEWLINE#
acvc (/20/)
No help is available for this function.#NEWLINE#
ahv (/20/)
No help is available for this function.#NEWLINE#
ahvc (/20/)
No help is available for this function.#NEWLINE#
ahcv (/20/)
The inverse hacoversed sine is not implemented in this version of amath.#NEWLINE#
ahcc (/20/)
The inverse hacoversed cosine is not implemented in this version of amath.#NEWLINE#
exsec (/20/)
No help is available for the exsecant function.#NEWLINE#
excsc (/20/)
No help is available for the excosecant function.#NEWLINE#
aexsec (/20/)
No help is available for the inverse exsecant function.#NEWLINE#
aexcsc (/20/)
No help is available for the inverse excosecant function.#NEWLINE#

View File

@ -1,5 +1,5 @@
##stringtype C
/*
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
@ -26,25 +26,23 @@
* Generated with FlexCat. For more information, see:
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
*
*/
#ifndef AMATH_LOCALIZE_IDENT_H
#define AMATH_LOCALIZE_IDENT_H
/**
* @file ident.h
* @file localize/ident.h
* @brief Help texts for built-in functions.
*
*
*/
#include "amath.h"
#include "platform.h"
struct identhelpdef {
int id;
const char *ident;
const char *text;
};
#include "amathc.h"
#include "amatht.h"
static const identhelpdef identtexts[] = {
{ %d, "%i", %s },

View File

@ -5,7 +5,7 @@
; ## -------------------------------
; ##
; ## Generate code with:
; ## flexcat kword.cd ../../src/localize/kword.h=kword.sd
; ## flexcat keyword.cd ../src/localize/kword.h=keyword.sd
; ##
; ###################################################################################
; ## Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
@ -95,6 +95,9 @@ hyper (//)
symhyper
hyperbolic (//)
symhyper
;######### Early keyword
early (//)
symearly
;######### HelpStatement
help (//)
symhelp

View File

@ -1,5 +1,5 @@
##stringtype none
/*
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
@ -26,29 +26,33 @@
* Generated with FlexCat. For more information, see:
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
*
*/
#ifndef AMATH_LOCALIZE_KEYWORD_H
#define AMATH_LOCALIZE_KEYWORD_H
/**
* @file kword.h
* @file localize/kword.h
* @brief Keywords used by lexer.
*
*/
#include "amath.h"
#include "platform.h"
#include "amathc.h"
#include "localize/lex.h"
/**
* @brief Character representation of keyword tied with its symbol.
*
*/
struct keyworddef {
struct keyworddef
{
int id;
Symbol symbol;
const char *name;
const char* name;
};
static const keyworddef keywords[] = {

View File

@ -5,7 +5,7 @@
; ## ---------------------
; ##
; ## Generate code with:
; ## flexcat text.cd ../../src/localize/text.h=text.sd
; ## flexcat text.cd ../src/localize/text.h=text.sd
; ##
; ###################################################################################
; ## Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
@ -34,6 +34,46 @@
; ###################################################################################
INTROMSG (/4/)
#NORMALTEXT##BOLD##STARTMSG##NEWLINE##NORMALTEXT##COLOR02#Type help to show info.#NEWLINE#
STATEMENTLINE (/4/)
---------------------------------------------------------#NEWLINE#
STATEMENTCLEAR (/4/)
clear Clear console window.#NEWLINE#
STATEMENTDEF (/4/)
def Define function.#NEWLINE#
STATEMENTDELETE (/4/)
delete Delete variable or function.#NEWLINE#
STATEMENTDIGITS (/4/)
digits Set number of significant digits.#NEWLINE#
STATEMENTEVAL (/4/)
eval Evaluate arithmetic expression.#NEWLINE#
STATEMENTEXECUTE (/4/)
execute Execute statements in a file.#NEWLINE#
STATEMENTFUNCS (/4/)
functions Show list of user defined functions.#NEWLINE#
STATEMENTINPUT (/4/)
input Change numeral input system.#NEWLINE#
STATEMENTHELP (/4/)
help Show basic help text.#NEWLINE#
STATEMENTOUTPUT (/4/)
output Change numeral output system.#NEWLINE#
STATEMENTLIST (/4/)
list Show content of a directory.#NEWLINE#
STATEMENTSHOW (/4/)
show Show content of a file.#NEWLINE#
STATEMENTLOAD (/4/)
load Load variable and functions from file.#NEWLINE#
STATEMENTSAVE (/4/)
save Save variable and functions to file.#NEWLINE#
STATEMENTVARS (/4/)
variables Show list of variables.#NEWLINE#
STATEMENTVERSION (/4/)
version Show version string.#NEWLINE#
STATEMENTMEMORY (/4/)
memory Show internal memory usage.#NEWLINE#
STATEMENTEXIT (/4/)
exit Exit program.#NEWLINE#
STATEMENTFOOTER (/4/)
The def and eval statements are optional. Functions and#NEWLINE#variables statements can be shorten to funcs and vars.#NEWLINE#
TXTLISTDIRHEADER (/4/)
Type Name#NEWLINE#-----------------------------------------------#NEWLINE#
TXTLISTDIRTFILE (/4/)

View File

@ -1,5 +1,5 @@
##stringtype C
/*
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
@ -26,26 +26,27 @@
* Generated with FlexCat. For more information, see:
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
*
*/
#ifndef AMATH_LOCALIZE_TEXT_H
#define AMATH_LOCALIZE_TEXT_H
/**
* @file text.h
* @file localize/text.h
* @brief Static texts in amath.
*
*
*/
#include "main.h"
#include "amath.h"
#include "platform.h"
#include "amathc.h"
#include "amatht.h"
#include "system/program.h"
#define %i Program->Language->GetText(%d)
struct textdef {
int id;
const char *text;
};
#define %i (Program->Language->GetText(%d))
static const textdef textdefs[] = {
{ %d, %s }, /* %i */