I’ve updated my JavaScript parser to include full Unicode support.
Check out the test interfaces for:
» Full parser;
» Code highlighting.
Tag Archives: JavaScript
JavaScript Syntax Nuances
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.
JParser now with Automatic Semicolon Insertion
I finally found a spare few hours to implement Automatic Semicolon Insertion into my JavaScript Parser.
Check out the test interface here.
Full JavaScript parser for PHP
[ Update 18 Nov 2009 ]
This article is rather old now – the jParser code has been released
—
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