2011-01-01から1ヶ月間の記事一覧
Today I read memory management in go compiler.There are go.y, y.tab.[ch], lex.c and other files in src/cmd/gc/ directory. It seems that the go compiler has a lexical analyzer written by hand and a syntax parser generated by yacc(bison). le…
Recently I read Go lang. I began to understand its structure.How to buildYou can build the go compiler and tools as documented in the official documentation. It is quite easy. But it was confusing for me that I must run ./all.bash instead …
Do you know rubyists in Japan use Irb in Japanese?% irb --help Usage: irb.rb [options] [programfile] [arguments] -f ~/.irbrc を読み込まない. -m bcモード(分数, 行列の計算ができる) -d $DEBUG をtrueにする(ruby -d と同じ) -r load-module ruby .…