Pharen: um compilador lisp para php

http://scriptor.github.com/pharen/ (fn greet-person (name) (. “Hello ” name “!”))(echo (greet-person “visitor”)) <?phpfunction greet_person($name){ return “Hello ” . $name . “!”;}echo greet_person(“visitor”);?>

Continuar lendo

Desejando a você um Natal multilíngue

Rubi Christmas=”beer “NewYear=”more beer”if Christmas + NewYear==”beer more beer” print “festive hangover”end Objective-C NSString *Christmas=@”beer “;NSString *NewYear=@”more beer”;if ([[NSString stringWithFormat:@”%@%@”,Christmas,NewYear] isEqualToString:@”beer more beer”]) NSLog(@”%@”, @”festive hangover”); Pitão Christmas=”beer “NewYear=”more beer”if …

Continuar lendo

usando idiorm em lisp com pharen

macros (defmacro orm-config (type host db username password) ‘(do (:: ORM (configure (. ~type “:host=” ~host “;dbname=” ~db ))) (:: ORM (configure “username” ~username)) (:: ORM (configure “password” ~password)) ) …

Continuar lendo