Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F4820477
xreate-client-syntax-check.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 24, 7:42 AM
Size
628 B
Mime Type
text/x-Algol68
Expires
Wed, Aug 26, 7:42 AM (1 d, 12 h)
Engine
blob
Format
Raw Data
Handle
280790
Attached To
rXR Xreate
xreate-client-syntax-check.js
View Options
/**
* @requires xreate-interface
* @provides xreate-syntax-check
* @do-not-minify
*/
function checkSyntax(input, callbackResponce) {
var transport = new Thrift.Transport("http://localhost:9090");
var protocol = new Thrift.Protocol(transport);
var client = new AbstractXreateServerClient(protocol);
client.checkSyntax(input, callbackResponce);
}
document.addEventListener('DOMContentLoaded', function(){
$("#check-syntax").click(function(){
var program = $("#program").val();
checkSyntax(program, function(responce){
$("#log").val(responce.output);
});
})
}, false);
Event Timeline
Log In to Comment