Collection of words to help with writing high level applications with Forth language. The source code here is tested using gforth. Suggestions are welcome.
Allocations are done on Dictionary, use marker to free after usage.
Check test files for example usage.
Current revision: e0fe90ddd4bb087da8be75c3eae34839da3a5f46.
This file is generated by docgen.fs with docgen.sh runner.
` allot new list object
` allot new node and set data to u
` allot new node with data and append to list return list
` execute xt on every element of list
` execute xt on every element of list1 and create a new list2 and return
` return list length
` return the nth data from list
` apply func xt on every element accumulating result in acc. xt is called with ( acc element -- acc )
` execute xt on every node and return true if at least one returns true. xt is called with ( element -- t )
` return counted string from string
return caddr from string
` make a string from the string at counted string
` convert string into number
` print string
` tokenize string delimited by d into list of tokens
` return nth character in string
` execute xt on every node accumulating result in acc. xt is called with ( acc char -- acc )
` execute xt on every node and return true if at least one returns true
` execute xt on every node and return true if all returns true
` append string2 to string1 and return string3
` compare string1 with string2 and return boolean
` make string for char
` exctract string2 from string1 with offsets [a,b)
` return the index of string2 within string1 otherwise -1
` replace string2 in string1 with string3 and return string4
` returns true if string1 ends with string2
convert integer to fixed point
convert fixed point to integer (rounded down)
multiply two fixed point numbers
divide two fixed point numbers
vector3 helper: convert 3 integers to 3 fixed point numbers
vector3 helper: convert 3 fixed point numbers to 3 integers
floor down fixed point number to nearest integer
ceil up fixed point number to nearest integer
round fixed point number to nearest integer
return base 10 digits
` convert a decimal fractional number in the form integer fractional
` supply the fractional digit count