|
|
@ -56,7 +56,7 @@ body { |
|
|
|
Source code on the left, compiled code and AST on the right (or error).<br/> |
|
|
|
Source code on the left, compiled code and AST on the right (or error).<br/> |
|
|
|
<b>Note:</b> Chrome/Chromium currently reports "Uncaught JavaScript Exception". |
|
|
|
<b>Note:</b> Chrome/Chromium currently reports "Uncaught JavaScript Exception". |
|
|
|
To work around this problem, enable the debug console (Ctrl+Shift+i) and reload.<br/> |
|
|
|
To work around this problem, enable the debug console (Ctrl+Shift+i) and reload.<br/> |
|
|
|
Version: <a href="https://github.com/ethereum/cpp-ethereum/commit/86850c3c89a0fc2195929772c64c5ff2bebdf855">86850c3...</a> 2015-07-03 |
|
|
|
Version: <span id="version">(loading)</span> |
|
|
|
<div id="optimizeBox"> |
|
|
|
<div id="optimizeBox"> |
|
|
|
<input id="optimize" type="checkbox"><label for="optimize">optimize</label> |
|
|
|
<input id="optimize" type="checkbox"><label for="optimize">optimize</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -132,7 +132,11 @@ editor.getSession().setUseSoftTabs(true); |
|
|
|
|
|
|
|
|
|
|
|
var compileJSON = Module.cwrap("compileJSON", "string", ["string", "number"]); |
|
|
|
var compileJSON = Module.cwrap("compileJSON", "string", ["string", "number"]); |
|
|
|
var ready = false; |
|
|
|
var ready = false; |
|
|
|
Module['onRuntimeInitialized'] = function() { ready = true; onChange(); }; |
|
|
|
Module['onRuntimeInitialized'] = function() { |
|
|
|
|
|
|
|
ready = true; |
|
|
|
|
|
|
|
$('#version').text(Module.cwrap("version", "string", [])()); |
|
|
|
|
|
|
|
onChange(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var previousInput = ''; |
|
|
|
var previousInput = ''; |
|
|
|
var compile = function() { |
|
|
|
var compile = function() { |
|
|
|