Jouluevankeliumi on käännetty monelle kielelle. Käänsin sen nyt myös ohjelmointikielelle.
The Christmas Gospel now also in programming language.
// // Christmas Gospel version 1.0.0 // year=0; country.name=Syria; country.ruler=Quirinius; for (a=1;a<=nrPeople;a++) { foreach ( city ) { city.taxCatalog[a]=people[a]; } if { people[a].name=”Josef”; josef = people[a]; } if ( josef.ancestry == ”David” ) { josef.city= “Betlehem”; maria = josef.betrothed; } } if ( maria.getPregnancyStatus() == 1 AND maria.getPregnancyTime() == 9 AND josef.getCurrentCity() == “Betlehem”) { isChildBorn = true; child = generateDescendant(maria); child.setGender(BOY); } if ( checkFreeLodging(josef.getCurrentCity()) == false ) { child.setBed(CRIB); } while ( shepherds.getStatus(WORKING) AND isChildBorn ) { showAngelOfLord = true; lordGlory=100; shepherds.setMood(SCARY); outputAngelMessage(); heavenlyHostVolume = 100; outputHeavenlyHostMessage(); } shepherdSpeed = 100; originalLocation = shepherds.currentLocation(); shepherds.setNextLocation( “Betlehem”); childFound = true; others.tell(childFoundMessage); others.setMood(AMAZED); maria.treasureAndPonder(ALL); shepherds.setNextLocation(originalLocation); shepherds.praiseGod();