Skip to content
A JavaScript-based GameMaker Language syntax parser. See it in use at GMLsnip.com
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
promo
LICENSE
README.md
gml_syntax.js

README.md

gml_syntax.js

A JavaScript syntax parser for the GameMaker Language, YoYo Games' GameMaker Studio 1.4 and 2.x programming language. Created for The Step Event.

Includes:

  • Local, global, and resource-level variable scoping
  • Macros, enums, and regions
  • Faux resource referencing (sprite*, object*, spr_, obj_)

Demo

You can check out a live demo of gml_syntax.js, with pretty-printing applied, in your browser at GMLsnip.com.

gml_syntax demo image 0 gml_syntax demo image 1 gml_syntax demo image 2 gml_syntax demo image 3

Usage

Call function gml_syntax(input_str)

  • @param [String] input_str Optional, string to tokenize
  • @return {Array} return_stack Token objects (class and nanme)

Compression/Minifying

  • For JavaScript code compression, this project uses Closure Compiler.
  • For CSS compression, this project uses CSSO.

Browser Support

This project performs as intended on the following web browsers:

  • Google Chrome v70.0.3538.102
  • Firefox Firefox v63.0.1
  • Internet Explorer v11.345.17134.0
  • Safari (macOS) Version 12.0 (14606.1.36.1.9)
  • Microsoft Edge v42.17134.1.0
  • Microsoft EdgeHTML v17.17134

Authors

License

This project is licensed under the GNU GPLv3 License - see the LICENSE.md file for details.

Acknowledgments

You can’t perform that action at this time.