12 Commits

Author SHA1 Message Date
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
651a1e7aa8 [jsinterp] Coding convention fixes 2016-12-08 13:22:28 +01:00
sulyi
b089388f26 [jsinterp] Lexer overhaul 2016-11-28 06:53:28 +01:00
sulyi
71a485fdb6 [jsinterp] Complex call test (thx to yan12125) 2016-11-25 22:41:33 +01:00
sulyi
da73cd90ec [jsinterp] Quick regex fixes (thx to yan12125) 2016-11-25 22:31:58 +01:00
sulyi
8c87a18029 [jsinterp] Calling field and test 2016-11-24 22:33:30 +01:00
sulyi
2c85715b93 [jsinterp] Handling comments 2016-11-23 06:19:57 +01:00
Yen Chi Hsuan
582be35847
Update coding style after pycodestyle 2.1.0
In pycodestyle 2.1.0, E305 was introduced, which requires two blank
lines after top level declarations, too.

See https://github.com/PyCQA/pycodestyle/issues/400

See also #10689; thanks @stepshal for first mentioning this issue and
initial patches
2016-11-17 19:45:42 +08:00
Kacper Michajłow
189935f159 [jsinterp] Fix function calls without arguments. 2016-11-11 15:36:57 +01:00
Yen Chi Hsuan
ff29bf81f8 [jsinterp] Support alternative function definition form 2015-11-10 12:54:02 +08:00
Philipp Hagemeister
3eff81fbf7 [jsinterp] Disable comment support
We need a proper lexer to be able to understand YouTube's code, which contains /* inside of strings.
For now it's sufficient to just disable comment support altogether.

Fixes #4976, fixes #4979, fixes #4980, fixes #4981, fixes #4982.
Closes #4977.
2015-02-18 10:47:42 +01:00
Philipp Hagemeister
9e3f19919a [jsinterp] Beef up and add tests
In preparation for #4822, extend jsinterp by a lot. (We may even have to/want to write a proper interpreter with actual parsing)
2015-02-01 22:38:29 +01:00