Thread: GS2 Emulator
View Single Post
  #24  
Old 02-29-2012, 07:15 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by fowlplay4 View Post
1. Support for GS2 Arrays
Hate to burst your bubble but you're not going to find a way to replace GS-style arrays with a regex.

First thing I tried of course was
a = {1,2,{3,4}};
which broke it.

There's gonna need a lot more work put into this to get proper GS emulation in JS. At a minimum, you'll likely need to break the GS into an AST and have a visitor reconstruct into JS.

As far as GSception goes, there were 2 things written a few years back:
by me
by zero (ziro?) / zokemon
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/

Last edited by Tolnaftate2004; 02-29-2012 at 07:41 PM..
Reply With Quote