Finishes implementation of PureJavaScriptGenerator based on D350
ClosedPublic

Authored by jangmarker on Sep 20 2015, 2:18 PM.

Details

Summary

[Compiler] Implement some literals

  • true, false, this,...
  • array literals
  • includes style corrections

[Compiler] Implement object literals

[Compiler] Add array and object member access

[Compiler] Implement function calls

[Compiler] Implement loops

  • local and global for
  • local and global for each
  • while
  • do while

[Compiler] Add some missing expressions

  • void, delete, typeof
  • unary +,-,!,~
  • new
  • conditional expression
  • nested expression

[Compiler] Add various elements

  • RegExp literals
  • some source elements
  • comma expression
  • function expression
  • labelled statement
  • with statement

[Compiler] Add try-catch-finally

Diff Detail

Repository
R18 QMLWeb
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jangmarker updated this revision to Diff 905.Sep 20 2015, 2:18 PM
jangmarker retitled this revision from to Finishes implementation of PureJavaScriptGenerator based on D350.
jangmarker updated this object.
jangmarker edited the test plan for this revision. (Show Details)
jangmarker added a reviewer: akreuzkamp.
akreuzkamp accepted this revision.Sep 27 2015, 9:32 AM
akreuzkamp edited edge metadata.

Please correct the coding style with trinary operators and land. :)

src/qmljsc/purejavascriptgenerator.cpp
150–155

coding style, please add a whitespace before the operator

200

coding style: please add whitespaces around operators :)

225

coding style

322

What the hell? Who designed that? :D
(is ok, nothing to change)

348

coding style

368

coding style

404

coding style

414

coding style

463

coding style

512

coding style

This revision is now accepted and ready to land.Sep 27 2015, 9:32 AM
Closed by commit R18:5c2b09b216c2: Finishes implementation of PureJavaScriptGenerator (authored by Jan Marker <jan@jangmarker.de>). · Explain WhySep 30 2015, 8:44 PM
This revision was automatically updated to reflect the committed changes.