
#include <stdio.h>
#define IABS(x) ((x) < 0 ? -(x) : (x))
int main(int argc, char *argv[]) {
  /* An annoying "Hello World" example */
  for (auto i = 0; i < 0xFFFF; i++)
    cout << "Hello, World!" << endl;
  char c = '\n';
  unordered_map <string, vector<string> > m;
  m["key"] = "\\\\"; // this is an error
  return -2e3 + 12l;
}
 
--[[
example useless code to show lua syntax highlighting
this is multiline comment
]]
function blahblahblah(x)
  local table = {
    "asd" = 123,
    "x" = 0.34,  
  }
  if x ~= 3 then
    print( x )
  elseif x == "string"
    my_custom_function( 0x34 )
  else
    unknown_function( "some string" )
  end
  --single line comment
  
end
its a pity it won't work on iPads though
javascript:(function(){var HLJS="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js",LUA="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/languages/lua.min.js",HL_STYLE="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/github.min.css";function d(a){var b=document.createElement("script");b.setAttribute("type","application/javascript");b.src=a;document.body.appendChild(b);return b}d(HLJS).onload=function(){d(LUA).id="luaapi";var a=document.createElement("link");a.type="text/css";a.rel="stylesheet";a.href=HL_STYLE;document.head.appendChild(a);a=function(){function a(){for(var b=document.querySelectorAll("code"),c=0;ca};"function"==typeof a&&(a="("+a+")();");var b=document.createElement("script");b.setAttribute("type","application/javascript");b.textContent=a;document.body.appendChild(b)}})();