Skip to content

paulooosrj/io-script-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IO Script Animate


GitHub license GitHub stars GitHub forks GitHub issues GitHub watchers Whatsapp Donate Paypal Donate Bitcoin


IO Script V1


A "language" based on javascript, comes with an auto compiler, module support, easy way to write code, html join, endif among other functions.

But does it take time to compile? Do not.


Demo IO Script


enter image description here


Security:
  • the scope of the code and storing within a closure

// IO Script Code
<script type="text/io-script" src="assets/js/app.io.js"></script>
// Script the Compiler
<script src="assets/js/io-script.min.js?version=1.0.0" charset="utf-8"></script>
<script type="text/javascript">
    // Start the Compiler
    const CodeCompile = IoScript.GetInstance(/* config */);
</script>
	  

	scope.load = function(){
		// Onload IO Script Function 
	};

	
	write == document.write
	Exemple: 
		write "Ola mundo!!"

	
	const App = $App(); // Generating a container to reuse objects
	Exemple: 
		App.set("msg", "Ola mundo!!");
		print App.get("msg");

	
	const DB = $DB(); // Generating a "Database" to be used with the code
	Exemple: 
	
		// Example Database Session ( It is only saved when the session is active )
		DB.Session().set("nome", "PaulaoDev");
		print print DB.Session().get("nome");
		DB.Session().remove("nome");
		
		// Example Database Storage ( It gets saved to the computer that accessed until someone removed )
		DB.Storage().set("nome", "PaulaoDev");
		print print DB.Storage().get("nome");
		DB.Storage().remove("nome");

	if / else
	Exemple:
		if(1 === 1):
			write "True!!"
		ielse:
			write "False!!"
		ielse;
		

	endif
	Exemple:
		if(cond === cond):
			write "ON!!";
		endif;

	print == console.log
	Exemple:
		print "Console World!!"

	// Modules stored in IO Script scope
	scope.modules = require ["bind","helpers", "module_name"];

   // Module Dir: /io-modules/bind/src/bind.js
   // Module pattern
   exports.hello = function(color){
   	// Changing the Modified HTML Module
   	return <(<h1 style="color:${color}">Hello World!"</h1>)>;
   };