GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TCBASIC(1) User Commands TCBASIC(1)

tcbasic - a small BASIC Interpreter written in C

tcbasic [filename]

tcbasic implements a small subset of BASIC in portable C. If the user specifies a filename on the command line or pipes data to tcbasic, the results will be written to standard out. If no file is specified, an interactive mode is started where a user can interact with the BASIC system directly.

Print a helpful message and exit
Print version information and exit

Remark has no effect on the execution of the program and acts as a comment to the developer. The remark can contain any character.
Prints the contents of 'list' to the console where 'list' is a comma separated list of one or more quoted strings, expressions, and/or variables.
Evaluates both 'expression's and compares them using relational operator 'relop'. If the relation is true, then the statement will be executed. Otherwise, the statement is skipped.
Evaluates 'expression' and jumps to the corresponding line number.
Given a comma separated list of 1 or more variables, this command will prompt the user to enter a comma separated list of expressions. The value of each expression will be assigned to each corresponding variable.
Evaluates 'expression' and jumps to the corresponding line number after saving the current line number.
Returns control to the line after the last 'GOSUB' call.
Assigns the value of expression to variable 'var' where 'var' is a single character variable name in the range from A to Z.
Ends the execution of the program.
Exits the interpreter.
System beep.
Executes a shell command.
Re-seeds the random number generator, causing RND to return a different sequence of random numbers. CLS Clears the screen.

Returns a random number in the range [0,1). The same sequence of numbers is returned in each program run. Use the RANDOMIZE statement to generate different sequences in each program run.
Returns the number of seconds since midnight.
Returns the sine of the given expression (measured in radians).
Returns the cosine of the given expression (measured in radians).
Returns the tangent of the given expression (measured in radians).
Returns the cotangent of the given expression (measured in radians).
Returns the arctangent of the given expression (measured in radians).
Returns e to the power of the given expression.
Returns the natural logarithm of of the given expression.
Returns the absolute value of the given expression.
Returns the integer portion of the given expression.
Returns the sign of the given expression. 1, 0, or -1 for positive, zero, or negative.
Returns the square root of the given expression.

Clears the program from memory and sets all variables to 0.
Prints the current program.
Renumber lines in memory.
Executes the current program.
Turns off debug tracing.
Turns on debug tracing.

See https://github.com/tcort/tcbasic/graphs/contributors

See https://github.com/tcort/tcbasic/issues

Copyright © 2015, 2016, 2017, 2018, 2020 Thomas Cort <linuxgeek@gmail.com>
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

June 2018 tcbasic 2.3.0

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.