2017 © Pedro Peláez
 

library lolcode-parser

PHP LOLCODE parser, based on the work of TetraBoy and MailChimp

image

dms/lolcode-parser

PHP LOLCODE parser, based on the work of TetraBoy and MailChimp

  • Sunday, March 1, 2015
  • by rdohms
  • Repository
  • 1 Watchers
  • 0 Stars
  • 307 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DMS LOLCode Parser

This is a LOLCode parser based on previous work by TetraBoy and MailChimp. It has support for a few more features and may get an overhaul for composer support and modern PHP, just cause., (*1)

Usage

php bin/lolcode.php <file>, (*2)

or, (*3)

php bin/lolcode.php -d <file>, (*4)

To enable debug and see generated code., (*5)

Examples

We've packaged up some example scripts in the ./examples/ directory. Here's what they do: test.lol - This is from Tetraboy's original index.lol example. It opens a SQLite db and prints data from it test2.lol - This example shows creating an associative array and printing its values. test3.lol - This example shows reading in LOL format, eval'ing it, and then iterating over and printing the 'imported' variables. test4.lol - This example shows off using the IO package to download a LOL formatted data file over the intertubes, evals it, and works with the data in the local scope test5.lol - This example shows off using the IO package to prompt for input to save in a variable, then spits it back out. test6.lol - This is from Tetraboy's original index.lol example. It shows defining a function, variable assignments, and incrememting numbers raffler.lol - This shows a simple raffler that picks a random name from a file., (*6)

The Versions

01/03 2015

dev-master

9999999-dev

PHP LOLCODE parser, based on the work of TetraBoy and MailChimp

  Sources   Download

MIT

The Requires

 

by Avatar rdohms