Няма описание

Legimet 51f9f2d3bc Update to Duktape v2.3.0 преди 6 години
examples c66cd27f39 ADDED mini GFX lib 0.1 преди 9 години
.gitignore ef9d30a872 Add Mandelbrot demo преди 9 години
COPYING 2573ffec13 * Add (incomplete) filesystem and keys modules преди 9 години
COPYING.LESSER 2573ffec13 * Add (incomplete) filesystem and keys modules преди 9 години
Makefile a7dca82bd1 Use newer lcd_blit API, add support for HW-W and classic преди 7 години
README.md 16ae5eaf3f Add some usage information to README преди 7 години
duk_config.h 51f9f2d3bc Update to Duktape v2.3.0 преди 6 години
duk_console.c 32e61fb804 Add console binding преди 7 години
duk_console.h 32e61fb804 Add console binding преди 7 години
duk_module_node.c d533c93191 Update to Duktape v2.2.0 преди 7 години
duk_module_node.h 350831b20f Node-like module system and other minor changes преди 7 години
duk_print_alert.c cd4e739fb7 Actually add print/alert functions преди 7 години
duk_print_alert.h cd4e739fb7 Actually add print/alert functions преди 7 години
duktape.c 51f9f2d3bc Update to Duktape v2.3.0 преди 6 години
duktape.h 51f9f2d3bc Update to Duktape v2.3.0 преди 6 години
floodfill.h 21cc49ef3f Indentation change преди 8 години
framebuffer.h 21cc49ef3f Indentation change преди 8 години
fs.c f75cb205e3 Fix warnings from duk_throw преди 7 години
fs.h 2573ffec13 * Add (incomplete) filesystem and keys modules преди 9 години
main.c ef759b2889 Add console.readline() to read user input преди 7 години
misc.c ef759b2889 Add console.readline() to read user input преди 7 години
misc.h ef759b2889 Add console.readline() to read user input преди 7 години
module.c 350831b20f Node-like module system and other minor changes преди 7 години
module.h 350831b20f Node-like module system and other minor changes преди 7 години
nsp_keys.c f75cb205e3 Fix warnings from duk_throw преди 7 години
nsp_keys.h 3a62c0c685 Change header guard преди 9 години
nsp_texture.c a7dca82bd1 Use newer lcd_blit API, add support for HW-W and classic преди 7 години
nsp_texture.h d0e6724dad Add incomplete Texture class (still need to add setData and drawOnTo) преди 9 години

README.md

Duktape-nspire 0.1.1

Duktape-nspire provides a JavaScript (ECMAScript) interpreter for the TI-Nspire handheld calculator. It combines the Duktape Javascript engine with a set of Nspire-specific modules and module support, and a REPL (using Nspire I/O for its interface).

Usage

The calculator must have Ndless installed. To get to the interactive Nspire I/O console, run Duktape directly from the document browser. Type .exit to exit.

You can also run scripts with a .js extension from the document browser. The extension should be registered with duktape. This is done automatically the first time you run Duktape from the document browser, but you can also register it manually by editing ndless.cfg.tns.

Modules

The following modules are available right now:

  • fs: Filesystem functions, compatible with the fs module of Node.js
  • nsp/keys: Functions for keyboard input
  • nsp/texture: Graphics support, compatible with the Texture class of the Nspire port of Micro Python

These modules are not complete, and more functions and modules will be added in the future.

License

Duktape-nspire is licensed under the GNU LGPL, version 3 or above:

Copyright (C) 2015 Legimet

This file is part of Duktape-nspire.

Duktape-nspire is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Duktape-nspire is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with Duktape-nspire. If not, see http://www.gnu.org/licenses/.

Duktape itself is licensed under the MIT License (Expat), which can be found in the file duktape.h.