home *** CD-ROM | disk | FTP | other *** search
- Short: Interpreter with syntax near to BASIC and C
- Author: jay-t@gmx.net
- Uploader: jay-t@gmx.net
- Version: 0.33
- Type: dev/lang
-
- Required: AmigaOS 2.0 (maybe 1.3 works too)
-
- Long:
-
- Nano is a new interpreter with syntax near to BASIC and C.
- The main features are:
-
- - types: short int, long int, double and string.
- - arrays
- - advanced array handling
- - subroutines
- - ANSI output functions: text styles, text locating, cursor moving...
- - virtual memory
- - file in-/output
-
- new: input function bugfix, now it's ok. Sorry!
-
-
- This is the famous "Hello world!" example:
-
- print "Hello world!", /n;
-
- What's the "/n" doing? It prints a linefeed.
- To start this example, open a Shell and type:
-
- cd nanoprog:
- nano hello.n
-
-
- Let's say we want to print it five times. Then we need a loop:
-
- ---- cut --------------------------------------------
-
- // prints "Hello world!" five times
-
- int i; declare i
-
- i = 1;
- while i <= 5;
- print "Hello world!", /n;
- inc i; replaces "i = i + 1;"
- wend;
-
- ---- cut end ----------------------------------------
-
- This example shows the two ways to use comments. Everything without
- a following semicolon is ignored. A whole line starts with "//".
-
- Now lets get some input:
-
- ---- cut -----------------------------
-
- string name[31];
-
- input "Your first name? " name;
- print /n, "Hello ", name, "!", /n;
-
- ---- cut end -------------------------
-
- -------------------------------------------------------------------------
- LhA Evaluation V1.38 - Copyright (c) 1991,92 Stefan Boberg.
- All rights reserved. Not for commercial use.
-
- Listing of archive 'nano.lha':
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 628 265 57.8% 06-Aug-02 08:07:20 +include.info
- 14 14 0.0% 23-Nov-02 09:19:48 +cl.dec
- 49 49 0.0% 23-Nov-02 09:20:00 +cl.sub
- 79 74 6.3% 23-Nov-02 09:20:32 +config.n
- 60 60 0.0% 23-Nov-02 09:20:20 +doub_pre.dec
- 552 242 56.1% 23-Nov-02 09:20:48 +doub_pre.sub
- 340 173 49.1% 23-Nov-02 09:21:00 +file.h
- 51 51 0.0% 23-Nov-02 09:21:14 +get_time.dec
- 717 252 64.8% 23-Nov-02 09:21:30 +get_time.sub
- 725 332 54.2% 23-Nov-02 09:22:34 +math.h
- 44 44 0.0% 23-Nov-02 09:22:52 +prpos.dec
- 82 76 7.3% 23-Nov-02 09:23:06 +prpos.sub
- 78 70 10.2% 23-Nov-02 09:23:18 +spl_date.dec
- 743 241 67.5% 23-Nov-02 09:23:44 +spl_date.sub
- 120 93 22.5% 23-Jul-02 16:32:40 +nano-Assigns
- 242 140 42.1% 06-Aug-02 08:07:20 +nano-Assigns.info
- 20784 7033 66.1% 15-Jan-03 07:26:36 +nano.guide
- 436 210 51.8% 06-Aug-02 08:07:20 +nano.guide.info
- 198632 62729 68.4% 15-Jan-03 06:53:18 +nano_68000
- 181032 56887 68.5% 15-Jan-03 06:56:04 +nano_68020
- 181032 56887 68.5% 15-Jan-03 06:58:42 +nano_68020_FPU
- 628 254 59.5% 06-Aug-02 08:07:20 +prog.info
- 266 128 51.8% 12-Apr-02 06:46:06 +ansi.n
- 1019 361 64.5% 23-Jul-02 16:54:46 +benchm.n
- 6729 1782 73.5% 18-Nov-02 07:23:10 +calendar.n
- 277 173 37.5% 23-Jul-02 16:00:56 +circle.n
- 795 374 52.9% 24-Jul-02 08:39:36 +circle_l.n
- 970 310 68.0% 22-May-02 06:29:00 +clock.n
- 680 289 57.5% 25-May-02 15:35:02 +constyle.n
- 3916 966 75.3% 20-Aug-02 06:23:42 +date.n
- 5451 1317 75.8% 13-Jun-02 08:03:18 +datedata.n
- 26 26 0.0% 06-Aug-02 08:17:20 +hello.n
- 219 144 34.2% 05-Apr-02 06:59:00 +lab_demo.n
- 2724 893 67.2% 23-Nov-02 10:07:34 +primenum.n
- 680 327 51.9% 18-Nov-02 08:11:08 +viewtext.n
- 628 271 56.8% 15-Jan-03 07:01:26 nano.info
- -------- ------- ----- --------- --------
- 611448 193537 68.3% 15-Jan-103 07:27:50 36 files
-
- Operation successful.
-