<span class=navbar-toggler-icon></span></button><div class="collapse navbar-collapse" id=navbarToggler><ul class="navbar-nav mr-auto mt-2 mt-lg-0"><li class=nav-item><a class=nav-link href=/about.html>About</a></li><li class=nav-item><a class=nav-link href=/gallery.html>Gallery</a></li><li class=nav-item><a class=nav-link href=/download.html>Download</a></li><li class="nav-item active"><a class=nav-link href=/docs.html>Documentation</a></li><li class=nav-item><a class=nav-link href=/community.html>Community</a></li><li class=nav-item><a class=nav-link href=https://jmmv.dev/tags/endbasic/ target=_new>Blog</a></li></ul></div></nav><div class="position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center bg-dark bg-grid"><div class="p-lg-1 mx-auto my-1 text-white text-left"><h1 class="title display-4 font-weight-normal">Ready<br>Documentation█</h1></div></div><article class=container><nav id=TableOfContents><ol><li><a href=#intro>Introduction</a><ol><li><a href=#intro-launch>Launching the interpreter</a></li><li><a href=#intro-first>Writing your first program</a></li><li><a href=#intro-load-save>Loading and saving</a></li><li><a href=#intro-help>Getting help</a></li></ol></li><li><a href=#lang>Language basics</a><ol><li><a href=#lang-case>Case sensitivity</a></li><li><a href=#lang-types>Primitive types</a></li><li><a href=#lang-arrays>Arrays</a></li><li><a href=#lang-ops>Operators</a></li><li><a href=#lang-expr>Expressions</a></li><li><a href=#lang-goto>GOTO and GOSUB</a></li><li><a href=#lang-conditionals>Conditionals</a></li><li><a href=#lang-loops>Loops</a></li><li><a href=#lang-on-error>Error handling</a></li><li><a href=#lang-data>Data blocks</a></li></ol></li><li><a href=#console>Console</a><ol><li><a href=#console-text>Text manipulation</a></li><li><a href=#console-inkey>Interactive interfaces</a></li><li><a href=#console-gfx>Rendering graphics</a></li><li><a href=#console-sync>Efficient graphics rendering</a></li></ol></li><li><a href=#fs>File system</a><ol><li><a href=#fs-paths>Drives and paths</a></li><li><a href=#fs-providers>Drive providers</a></li><li><a href=#fs-side-loading>Side-loading files</a></li></ol></li><li><a href=#cloud>Cloud service</a><ol><li><a href=#cloud-public>Accessing public content</a></li><li><a href=#cloud-signup>Signing up</a></li><li><a href=#cloud-login>Logging in</a></li><li><a href=#cloud-upload>Uploading a program</a></li><li><a href=#cloud-public-share>Publishing a program</a></li><li><a href=#cloud-privacy>Privacy and security notes</a></li></ol></li><li><a href=#hw>Hardware access</a><ol><li><a href=#hw-gpio>GPIO</a></li></ol></li><li><a href=#config>Configuration</a><ol><li><a href=#config-autoexec>AUTOEXEC.BAS</a></li></ol></li></ol></nav><h1 id=intro>Introduction</h1><p>This page provides an overview of the EndBASIC programming language and environment. Most of this text is written in a tutorial-like style, guiding you to accomplish certain tasks. The text is not meant to teach you programming from the ground up, although that would be desirable considering what EndBASIC’s goals are.</p><h2 id=intro-launch>Launching the interpreter</h2><p>EndBASIC is multi-platform and runs on the web and on almost all desktop operating systems, including macOS, Windows, and any Unix derivative such as FreeBSD or Linux. Most features exist in all builds, although there are a few exceptions.</p><p>The easiest way to get started is via the web-based interpreter, which you can start by clicking on this button:</p><blockquote><a class="btn btn-primary btn-lg" href=https://repl.endbasic.dev/ target=_new>Launch interpreter</a></blockquote><p>If you prefer the desktop version, visit the <a href=/download.html>Download page</a> to fetch the right build for your system and follow the instructions provided there.</p><p>As a teaser, note that if you end up trying out different versions of the interpreter, the easiest way to move files between them is to use the <a href=#cloud>file-sharing cloud service</a>.</p><h2 id=intro-first>Writing your first program</h2><p>To create your first program, open up the interpreter, type <code>EDIT</code> and press <code>Enter</code>. This will open up a full-screen text editor where you can start typing your first program. Within it, type the text below and press <code>Esc</code> to return to the command line:</p><div class=highlight><pre tabindex=0 class=chroma><code class=language-basic data-lang=basic><span class=line><span class=cl><span class=kr>INPUT</span><span class=w> </span><span class=s2>"What's your name"</span><span class=p>;</span><span class=w> </span><span class=vg>name$</span>
0 commit comments