An RPG Maker compatible version of whitequark's parser gem Just download the project and look at the example script
Original project: https://github.com/whitequark/parser