Posts Tagged ‘JavaScript’

JASPA Sneak Preview

Thursday, September 11th, 2008

JASPA means: "JavaScript; Alternative Syntax with PHP"

If it wasn't for copyright problems, the "AS" might stand for ActionScript, because this is its primary influence. In a nutshell, JASPA allows you to write a strongly-typed, class-based language modelled closely on ActionScript, and have it compiled into regular JavaScript source code. In an even smaller nutshell, how about - "ActionScript for the web browser".

JASPA is my long term pet project, and because it's taking so long, (what with a full time job and all), I've decided to offer a pre-release version for download as a sneak preview of what's on offer. This version is not ready for production and is offered as merely a proof of concept for developers who are interested enough to take a look.

» Download JASPA 0.1
This is a pre-beta version and is for the command line only.

(more…)

Bookmark this!
[Bloglines] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [Newsvine] [StumbleUpon] [Technorati] [Yahoo!]

jsobf - command line tips

Monday, September 8th, 2008

Here are some quick tips on how to use the jsobf command line program effectively.
(more…)

Bookmark this!
[Bloglines] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [Newsvine] [StumbleUpon] [Technorati] [Yahoo!]

jsfmt and jsobf available for download

Sunday, September 7th, 2008

By popular request I have made my JavaScript minimizer and obfuscator available for download. The jsobf program strips JavaScript source code down to the minimum whitespace required to separate the tokens, and performs automatic semicolon insertion to completely irradiate the need for line breaks. It also offers some obfuscation by renaming identifiers. (more…)

Bookmark this!
[Bloglines] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [Newsvine] [StumbleUpon] [Technorati] [Yahoo!]

JavaScript Obfuscator and Minifier

Saturday, June 14th, 2008

This tool is based on a full JavaScript parser that is part of a much bigger plan. I won't go into that just yet, but along the way I'm going to be releasing useful tools like this as they come about. It's useful to have some short term goals to keep up morale and ensure that the framework is working well.

> Try it here: Obfuscate and minify your JavaScript code

(more…)

Bookmark this!
[Bloglines] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [Newsvine] [StumbleUpon] [Technorati] [Yahoo!]

JParser now with Unicode support

Sunday, June 8th, 2008

I've updated my JavaScript parser to include full Unicode support.
Check out the test interfaces for:
» Full parser;
» Code highlighting.

(more…)

Bookmark this!
[Bloglines] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [Newsvine] [StumbleUpon] [Technorati] [Yahoo!]

JavaScript Syntax Nuances

Saturday, June 7th, 2008

If you learn a programming language it is unlikely that you will read the formal language specification that defines all the laws of the syntax. You may never read it at all. It is more useful to learn by example, or at least topic-by-topic. However, a mere ten years after writing my first few lines of JavaScript, I read the ECMAScript standard and it threw up some things I did not know.

There are many things that you can write in JavaScript that are perfectly valid syntax, but that you probably never will write. Here are a few that raised an eyebrow or two.

(more…)

Bookmark this!
[Bloglines] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [Newsvine] [StumbleUpon] [Technorati] [Yahoo!]

JParser now with Automatic Semicolon Insertion

Sunday, June 1st, 2008

I finally found a spare few hours to implement Automatic Semicolon Insertion into my JavaScript Parser.
Check out the test interface here.

(more…)

Bookmark this!
[Bloglines] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [Newsvine] [StumbleUpon] [Technorati] [Yahoo!]

Full JavaScript parser for PHP

Friday, May 9th, 2008

Despite the glorious sunshine this week, my week off, I managed to put some time into my pet project of developing a full JavaScript parser written in 100% native PHP. Actually, I've been developing a generic parser suite for some time, and using it to build a full JavaScript parser was my ultimate goal to be satisfied that it all works and is powerful enough to be useful. I've written a bunch of blogs about developing a parser generator in PHP, (click "parsing" to do a tag search).

Before I start wittering on,
Click here to play with the online example of JParser

(more…)

Bookmark this!
[Bloglines] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [Newsvine] [StumbleUpon] [Technorati] [Yahoo!]