13 Commits

Author SHA1 Message Date
sulyi
e392f7897d [jsinterp] Formatting code 2016-12-10 02:59:32 +01:00
sulyi
a9c7310950 [jsinterp] Adding context handling 2016-12-10 02:01:19 +01:00
sulyi
6fa4eb6208 [jsinterp] Fixing compatibility
- compat_str
- unittest2
2016-12-10 00:52:04 +01:00
sulyi
dd6a2b5b49 [jsinterp] Clean up
- Fixing test_jsinterp_parse test_empty_return
- Fixing test_call and test_complex_call not testing statements (ast still needed)
- Adding class Reference and Context to jsinterp
- Fixing JSInterpreter interpret_statement and interpret_expression
2016-12-09 23:38:48 +01:00
sulyi
70a5e31014 [jsinterp] Parentheses fix (test and parser) 2016-12-08 08:29:12 +01:00
sulyi
599b9db878 [jsinterp] First parser tests 2016-12-08 04:00:00 +01:00
sulyi
8ff8a706ed [jsinterp] Str tokens are easier to deal with 2016-12-07 21:03:57 +01:00
sulyi
c2f280d5cc [jsinterp] Compatibility fix 2016-12-07 19:47:10 +01:00
sulyi
c426efd5b5 [jsinterp] More tokens 2016-12-07 12:33:07 +01:00
sulyi
ce4a616c4a [jsinterp] Token class for tokens 2016-12-07 07:28:09 +01:00
sulyi
d422aefc03 [jsinterp] Very basic interpreter
Supports:
- variable declaration
- expression
- variable assignment

Lacks:
- call
- array access
- property access
- property declaration
2016-12-06 18:42:59 +01:00
sulyi
7864078bfa [jsinterp] Preliminary fixes after some testing of ast 2016-12-05 11:44:32 +01:00
sulyi
f6ad8db133 [jsinterp] Refactoring and minor fixes 2016-12-04 19:15:35 +01:00