This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is an implementation of the 'Google machine' (*1), where its fancy | |
graphics is replaced by dull text strings. | |
*1 Alan Turing's 100th Birthday (in Google Doodles) | |
http://www.google.com/doodles/alan-turings-100th-birthday | |
The syntax of the language is probably easily understood by viewing the | |
article (*2) of the author's blog. Although it is written in Japanese | |
all you have to see is the graphics and the corresponding text source. | |
(The rule of the 'Google machine' can surely be learned by playing with | |
the Doodle.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% | |
%% pdfm-wjipx.map | |
%% | |
%%%%%%%%------------ | |
%%%%%%%% ASCII pTeX | |
%%%%%%%%------------ | |
%%%% Standard Fonts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; isqrt.scm | |
; | |
(load "./sanierer") | |
; Input expressions to string-lot can contain | |
; the following special forms: | |
; (lambda (<var>) <body>) | |
; NB. The arity must be one. | |
; (^ (<var>) <expr>) ; short form of the above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module IfMethod | |
Done = Object.new | |
NotYet = Object.new | |
Noop = Proc.new {} | |
DoneWith = Object.new | |
def self.proc_if(cond, tblk) | |
if cond then | |
tblk.call | |
Done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FizzBuzz program. | |
require 'iffunction' | |
1.upto(20) do |n| | |
_if(n % 15 == 0) { | |
puts "FizzBuzz" | |
}.elsif(n % 3 == 0) { | |
puts "Fizz" | |
}.elsif(n % 5 == 0) { | |
puts "Buzz" | |
}.else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% | |
% bxnoautolink.sty | |
% | |
%% Package declaration | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{bxnoautolink} | |
%% preparations | |
\newif\ifbxqhh@done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load 'wix.rb' | |
# FizzBuzz | |
1.upto(20) do |n| | |
Wix.if { n % 3 == 0 }.then { | |
print "Fizz" | |
}.if { n % 5 == 0 }.then { | |
print "Buzz" | |
}.else { | |
print n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{lisp} | |
\makeatletter%!!!!!!!!!!!!!!!!!!!!!!!!!! | |
\addassoc\@globalenv\texprint{\Func{\@tex@texprint}} | |
\def\@tex@texprint#1#2#3{% | |
\gdef#1{\Nil}\@@tex@texprint#2{#3}} | |
\def\@@tex@texprint#1#2{% | |
\ifx#1\Value | |
\@add@to@write@buffer\@temp@write@buffer{#2}% | |
\else\ifx#1\Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% defqverb.sty | |
%%<*> \begin{defqverb}\CS<content>\end{defqverb} | |
% Makes \CS a macro that expands to the token list that is obtaned | |
% by full-expanding <content> in verbatim except \, {, and }. | |
% Here a newline character is converted to \par. | |
\def\defqverb#1{% | |
\xx@obeylines | |
\let\do\@makeother \xx@specials | |
\gdef\xx@finale{\let#1\xx@g@tempa}% | |
\xdef\xx@g@tempa{\ifnum`}=\z@\fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% | |
% bxcountxac.sty | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{bxcountxac} | |
%% variables | |
\newread\xx@file | |
\newcount\xx@count | |
\newcount\xx@maxcount |