Rapier script playground

Developer
Size
2,937 Kb
Views
16,192

How do I make an rapier script playground?

Tokenizer example this what compilers and parsers do with your code before compiling/executing it the token representations can vary. What is a rapier script playground? How do you make a rapier script playground? This script and codes were developed by Matheus Silva on 20 October 2022, Thursday.

Rapier script playground Previews

Rapier script playground - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>rapier script playground</title> <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .input{ color:blue; width: 20%; height: 40%;
}
body{ background-color: #2C3E50; background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/90399/subtle_carbon.png'); background-repeat: repeat;
}
.code{ position: absolute; padding: 5px; width: 50%; height: 50%; color: black; background-color: #ECF0F1; margin: -5% 0 0 30%; font-family: 'Source Sans Pro', 'sans-serif'; font-size: 20px; overflow: scroll
}
span{ font-family: 'Source Sans Pro', 'sans-serif'; color: #ECF0F1;
}
.reset{ border-radius: 20px; border: none; background-color: #67809F; color: #A2DED0; padding: 9px; outline: none; transition: all .5s; position: absolute; top 55%;
}
.reset:hover{ border: 8px solid #22313F;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <span>write down your code: </span><br>
<textarea class="input"></textarea><br>
<button class="reset">Tokenize</button><br><br><br>
<div><pre class="code"></pre></div> <script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/90399/tokeniser.js'></script> <script src="js/index.js"></script>
</body>
</html>

Rapier script playground - Script Codes CSS Codes

.input{ color:blue; width: 20%; height: 40%;
}
body{ background-color: #2C3E50; background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/90399/subtle_carbon.png'); background-repeat: repeat;
}
.code{ position: absolute; padding: 5px; width: 50%; height: 50%; color: black; background-color: #ECF0F1; margin: -5% 0 0 30%; font-family: 'Source Sans Pro', 'sans-serif'; font-size: 20px; overflow: scroll
}
span{ font-family: 'Source Sans Pro', 'sans-serif'; color: #ECF0F1;
}
.reset{ border-radius: 20px; border: none; background-color: #67809F; color: #A2DED0; padding: 9px; outline: none; transition: all .5s; position: absolute; top 55%;
}
.reset:hover{ border: 8px solid #22313F;
}

Rapier script playground - Script Codes JS Codes

var input = document.body.querySelector('.input');
var rst = document.body.querySelector('.reset');
var psr = document.body.querySelector('.parse');
var codeRender = document.body.querySelector('.code');
window.addEventListener ("load", function () { rst.addEventListener ("click", function (e) { var c = input.value; var tokenized = tokenize(c); codeRender.innerHTML = tokenized; }, false); psr.addEventListener ("click", function (e) { var c = input.value; codeRender.innerHTML = parse(tokenized); }, false); input.addEventListener ("keydown", function (e) { var keycode = e.keyCode || e.which; if (keycode == 9){ e.preventDefault(); var prec = input.value; input.value = prec + ' '; } }, false);
}, false);
Rapier script playground - Script Codes
Rapier script playground - Script Codes
Home Page Home
Developer Matheus Silva
Username matheusxaviersi
Uploaded October 20, 2022
Rating 3
Size 2,937 Kb
Views 16,192
Do you need developer help for Rapier script playground?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Matheus Silva (matheusxaviersi) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!