Skip to content

Commit

Permalink
Release v1.3
Browse files Browse the repository at this point in the history
- New: Performance improving
- New: New error handling method (#3)
- New: Handle or throw syntax errors at pre-interpret-time
- New: Handle const values at pre-interpret-time
- New: Inner function can cache its outer call-scope (#1)
- New: Inner function can be pre-interpreted (call before define is
available) (#2)
- New: Max call-stack detection added
- New: Minus operator can be used to calculate elapsed milliseconds with
two date objects
- New: IDirectory interface is available to property access and
enumeration (#4)
- New: Information about functions and variables is available after
compiling
- Fixed: Function scope and call-scope has been fixed
- Fixed: Exception caused when array resizing has been fixed
- Changed: .NET IList interface can be accessed directly (DirectAccess
mode is unnecessary)
- Changed: Reform library namespaces
  • Loading branch information
jingwood committed Jun 17, 2013
1 parent f3b20c0 commit 392790b
Show file tree
Hide file tree
Showing 46 changed files with 11,148 additions and 8,382 deletions.
Binary file added Binary/ReoScript-1.2-Binary.zip
Binary file not shown.
Binary file added Binary/ReoScript-1.2.2-Binary.zip
Binary file not shown.
Binary file added Binary/ReoScript-1.3-Binary.zip
Binary file not shown.
Binary file added Binary/ReoScript-Samples-Binary.zip
Binary file not shown.
Binary file added Binary/ReoScript-SimplestApplication-Binary.zip
Binary file not shown.
28 changes: 22 additions & 6 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
v1.2.2
v1.3 6/17/2013
- New: Performance improving
- New: New error handling method
- New: Handle or throw syntax errors at pre-interpret-time
- New: Handle const values at pre-interpret-time
- New: Inner function can cache its outer call-scope
- New: Inner function can be pre-interpreted (call before define is available)
- New: Max call-stack detection added
- New: Minus operator can be used to calculate elapsed milliseconds with two date objects
- New: IDirectory<string, object> interface is available to property access and enumeration
- New: Information about functions and variables is available after compiling
- Fixed: Function scope and call-scope has been fixed
- Fixed: Exception caused when array resizing has been fixed
- Changed: .NET IList interface can be accessed directly (DirectAccess mode is unnecessary)
- Changed: Reform library namespaces

v1.2.2 6/3/2013
- New: Performance improving
- New: DirectAccess test cases added
- New: Add 'apply' method to prototype of Function
- New: Add 'join' method to prototype of Array
- New: Wrapper objects (String, Number and Boolean) is fully supported
- Fixed: 'return' in 'for' does not work
- Fixed: string.split method with length limit argument returns unexpected result
- Change: Using .Net primitive types of string instead of StringObject
- Change: Index of array to modify a string is no longer supported
- Change: ScriptEditor enable debug-mode by default
- Fixed: string.split method returns unexpected result when limit argument
- Changed: Using .NET primitive type of string instead of StringObject
- Changed: Index of array to modify a string is no longer supported
- Changed: ScriptEditor enable debug-mode by default

v1.2 5/15/2013
- New: Error handling supported (Error object and try/catch/finally/throw)
- New: Add 'Boolean' internal function
- New: Add 'instanceof' keyword, check whether object is instance of a constructor function
- New: Add '===' and '!==' operators (strict compared by C# Runtime)
- New: Add '===' and '!==' operators (strict compared by data and type)
- New: Add Array constructor to support elements
- New: Add Array method 'indexOf' to prototype
- New: Add Array Extension Library (Linq-like operations available with CoreFeatures.FullFeatures)
Expand Down
6 changes: 3 additions & 3 deletions ReoScript/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ReoScript")]
[assembly: AssemblyDescription("Script language interpreter for .Net Application")]
[assembly: AssemblyDescription("Script language engine for .NET Application")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("unvell")]
[assembly: AssemblyProduct("ReoScript")]
Expand All @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.2.0")]
[assembly: AssemblyFileVersion("1.2.2.0")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
266 changes: 131 additions & 135 deletions ReoScript/ReoScript.tokens
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
T__121=121
T__122=122
T__123=123
T__124=124
Expand Down Expand Up @@ -48,169 +47,166 @@ COMBINE_OBJECT=25
COMMA=26
COMMENT=27
CONDITION=28
CONTINUE=29
CREATE=30
DECLARATION=31
DECREMENT=32
DELETE_PROP=33
DIV=34
DOT=35
ELSE=36
EQUALS=37
ESCAPE_SEQUENCE=38
FOREACH_STATEMENT=39
FOR_BODY=40
FOR_CONDITION=41
FOR_INIT=42
FOR_ITERATOR=43
FOR_STATEMENT=44
FUNCTION_CALL=45
FUNCTION_DEFINE=46
GREAT_EQUALS=47
GREAT_THAN=48
HEX_LITERATE=49
IDENTIFIER=50
IF_STATEMENT=51
IMPORT=52
INCREMENT=53
INSTANCEOF=54
LAMBDA_FUNCTION=55
LBRACE=56
LCURLY=57
LESS_EQUALS=58
LESS_THAN=59
LINE_COMMENT=60
LIT_FALSE=61
LIT_NULL=62
LIT_TRUE=63
LOCAL_DECLARE_ASSIGNMENT=64
LOGICAL_AND=65
LOGICAL_OR=66
LPAREN=67
LSHIFT=68
MEMBER_DECLARATION=69
MEMBER_MODIFIER=70
MINUS=71
MOD=72
MUL=73
NAN=74
NEWLINE=75
NOT=76
NOT_EQUALS=77
NUMBER_LITERATE=78
OBJECT_LITERAL=79
OR=80
PARAMETER_DEFINES=81
PARAMETER_DEFINE_WITH_DEFAULT_VALUE=82
PARAMETER_DEFINE_WITH_DEFAULT_VALUE_LIST=83
PLUS=84
POST_UNARY_STEP=85
PRE_UNARY=86
PRE_UNARY_STEP=87
PRIVATE=88
PROPERTY_ACCESS=89
PROTECTED=90
PUBLIC=91
RBRACE=92
RCURLY=93
RETURN=94
RPAREN=95
RSHIFT=96
SEMI=97
STRICT_EQUALS=98
STRICT_NOT_EQUALS=99
STRING_LITERATE=100
SWITCH=101
SWITCH_CASE=102
SWITCH_CASE_ELSE=103
TAG=104
TAG_ATTR=105
TAG_ATTR_LIST=106
TAG_NAME=107
TEMPLATE_DEFINE=108
TEMPLATE_TAG=109
THIS=110
TRY_CATCH=111
TRY_CATCH_CASE=112
TRY_CATCH_FINAL=113
TRY_CATCH_TRHOW=114
TYPE=115
TYPEOF=116
UNDEFINED=117
WHILE_STATEMENT=118
WS=119
XOR=120
'!'=76
'!='=77
'!=='=99
'%'=72
CONST_VALUE=29
CONTINUE=30
CREATE=31
DECLARATION=32
DECREMENT=33
DELETE_PROP=34
DIV=35
DOT=36
ELSE=37
EQUALS=38
ESCAPE_SEQUENCE=39
FOREACH_STATEMENT=40
FOR_BODY=41
FOR_CONDITION=42
FOR_INIT=43
FOR_ITERATOR=44
FOR_STATEMENT=45
FUNCTION_CALL=46
FUNCTION_DEFINE=47
FUN_BODY=48
GREAT_EQUALS=49
GREAT_THAN=50
HEX_LITERATE=51
IDENTIFIER=52
IF_STATEMENT=53
IMPORT=54
INCREMENT=55
INSTANCEOF=56
INTERNAL=57
LAMBDA_FUNCTION=58
LBRACE=59
LCURLY=60
LESS_EQUALS=61
LESS_THAN=62
LINE_COMMENT=63
LIT_FALSE=64
LIT_NULL=65
LIT_TRUE=66
LOCAL_DECLARE_ASSIGNMENT=67
LOGICAL_AND=68
LOGICAL_OR=69
LPAREN=70
LSHIFT=71
MEMBER_DECLARATION=72
MEMBER_MODIFIER=73
MINUS=74
MOD=75
MUL=76
NAN=77
NEWLINE=78
NOT=79
NOT_EQUALS=80
NUMBER_LITERATE=81
OBJECT_LITERAL=82
OR=83
PARAMETER_DEFINES=84
PLUS=85
POST_UNARY_STEP=86
PRE_UNARY=87
PRE_UNARY_STEP=88
PRIVATE=89
PROPERTY_ACCESS=90
PROTECTED=91
PUBLIC=92
RBRACE=93
RCURLY=94
RETURN=95
RPAREN=96
RSHIFT=97
SEMI=98
STRICT_EQUALS=99
STRICT_NOT_EQUALS=100
STRING_LITERATE=101
SWITCH=102
SWITCH_CASE=103
SWITCH_CASE_ELSE=104
TAG=105
TAG_ATTR=106
TAG_ATTR_LIST=107
TAG_NAME=108
TEMPLATE_DEFINE=109
TEMPLATE_TAG=110
THIS=111
TRY_CATCH=112
TRY_CATCH_CASE=113
TRY_CATCH_FINAL=114
TRY_CATCH_TRHOW=115
TYPE=116
TYPEOF=117
UNDEFINED=118
WHILE_STATEMENT=119
WS=120
XOR=121
'!'=79
'!='=80
'!=='=100
'%'=75
'%='=17
'&&'=65
'&&'=68
'&'=4
'&='=10
'('=67
')'=95
'*'=73
'('=70
')'=96
'*'=76
'*='=14
'+'=84
'++'=53
'+'=85
'++'=55
'+='=16
','=26
'-'=71
'--'=32
'-'=74
'--'=33
'-='=13
'.'=35
'/'=34
'.'=36
'/'=35
'/='=11
'/>'=121
'/>'=122
':'=24
'<'=59
'</'=122
'<<'=68
'<'=62
'</'=123
'<<'=71
'<<='=12
'<='=58
'<='=61
'='=9
'=='=37
'==='=98
'=>'=123
'>'=48
'>='=47
'>>'=96
'=='=38
'==='=99
'=>'=124
'>'=50
'>='=49
'>>'=97
'>>='=19
'['=56
']'=92
'^'=120
'['=59
']'=93
'^'=121
'^='=18
'break'=124
'case'=125
'catch'=126
'class'=127
'break'=125
'case'=126
'catch'=127
'continue'=128
'default'=129
'delete'=130
'else'=36
'else'=37
'finally'=131
'for'=132
'function'=133
'if'=134
'import'=135
'in'=136
'instanceof'=54
'instanceof'=56
'new'=137
'private'=88
'protected'=90
'public'=91
'return'=138
'switch'=139
'template'=140
'throw'=141
'try'=142
'typeof'=143
'var'=115
'var'=116
'while'=144
'{'=57
'|'=80
'{'=60
'|'=83
'|='=15
'||'=66
'}'=93
'||'=69
'}'=94
'~'=145
Loading

0 comments on commit 392790b

Please sign in to comment.