corsaair / as3shebang Goto Github PK
View Code? Open in Web Editor NEWas3shebang – The ActionScript 3.0 Interpreter
as3shebang – The ActionScript 3.0 Interpreter
if you try to include a file
include "test.as";
you will receive the error
SyntaxError: (eval string):2: Syntax error: The 'include' directive is only allowed in programs whose origin is a file
as the title says, but not everywhere
need to investigate that
same for the verify errors, those errors occur in the outer scope of the script
for example
#!/usr/bin/env as3shebang -el -ec
import shell.*;
trace( "hello world" );
# something here
would generate the error
SyntaxError: (eval string):13: Syntax error: Illegal character in input: #
at shell::Runtime$/returnEval()
at corsaair.tools.as3shebang::App/main()
at global$init()
Because as3shebang wrap the main executing script into a custom wrapper
to allow nice colors and stuff
if an error occurs, the line number is skewed
When a script dynamically load definitions
for example
#!/usr/bin/env as3shebang -el -ec
import shell.*;
var person_loaded:Boolean = Runtime.load( "Person.swf" );
trace( "Person loaded: " + person_loaded );
import test.as3examples.*;
var p1:Person = new Person( "John Doe", 21 );
trace( "p1 = " + p1 );
because the definition is in "Person.swf"
the line
var p1:Person = new Person( "John Doe", 21 );
will generate a VerifyError
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.