source: NEWT0/trunk/documents/en.02_difference.txt @ 133

Revision 133, 2.6 KB checked in by matthiasm, 3 years ago (diff)

Converted documentation from Japanese into what Google claims to be English. Manually improved a few lines of the translation, but I am not sure if I got it right.

  • Property svn:executable set to *
Line 
1And the differences between upstream and
2------------------
3
4
5And the differences between upstream and ○
6
7String 1 Byte (ASCII) code
8
9※ probably in Japanese ShiftJIS, EUC, UTF-8 that will be done in
10
11The type int, array definition and functions of the native words are ignored
12Is a literal read-only. The operation has side effects and use a Clone
13Must be (treated the same package)
14
15○ unique extension
16
17Back to file the first line of comment # treatment (#! Execution)
18
19NIL # UNBIND Apart from the internal state (of special immediate value) is added. At present
20# UNBIND input on how the syntax does not exist. NIL work the same way as on
21Will be treated to
22
23Add operator ==
24
25= Operator and stronger than the comparison
26
27Support for indefinite number of長引
28
29Example: func (a1, a2, args ...)
30A leader in 3-point args as the rest of the arguments the array will be binding.
31
32Add pointer with the magic name
33
34@ name format pointer of the Magic (Magic pointer with the name: Named Magic
35Pointer) can be used.
36
37The magic of the original Newton pointer (@ 1 format) and can not be combined.
38For compatibility "NewtConf.h" in the __NAMED_MAGIC_POINTER__
39Newton commented that the use of the original pointer magic
40You can choose.
41
42Add the definition of a pointer syntax magic
43
44@ name: = (a: 1, b: 2); / / name pointer with Magic
45@ 1: = (a: 1, b: 2); / / Newton pointer to the magic of the original
46
47Add a binary object of expression
48
49Binary objects in the original description could not be directly,
50In the following syntax to write directly to a binary object that is able to
51Did
52
53          <# class: n1, n2, ....>
54          <# N1, n2, ....>
55
56※ n1, n2, ... the numbers (in decimal, hexadecimal)
57
58Signed integer support 32bit
59
60Add a regular expression object representation
61
62/ Regular expression pattern / Options
63Example: / [a-zA-Z] + / im
64
65When the above regular expressions to perform (_proto: @ protoREGEX, pattern: "[a-zA-Z] +", option: "im")
66Will be deployed as.
67
68Important: The actual use of regular expressions to protoREGEX extension library is required.
69The library will depend on the extended features.
70
71○ Other
72
73NewtonScript upstream to dump a function of the object
74
75       fn: = '(
76                class: CodeBlock,
77                instructions: <# instructions: 0x27, 0x00, 0x08, 0xA8, 0x70, 0x02>,
78                literals: [literals: a],
79                argFrame: (_nextArgFrame: NIL, _parent: NIL, _implementor: NIL),
80                numArgs: 0
81              );
82
83       call fn with ();
84
85And by expressing the original byte code NewtonScript to perform
86.
87 >  vertauschen     
88    Eine bessere Übersetzung vorschlagen
Note: See TracBrowser for help on using the repository browser.