マクロ関係、数のややこしいところ(有理数、虚数)以外は大体実装しました。これで生駒読書会#2にのぞもう! ファイル: list_parser.y # Local Variables: # mode: ruby # compile-command: "racc -o list_parser.rb list_parser.y" # End: class ListParser rule atoms : | atom atoms { result = List.new(*val) } atom : IDENT | CHAR | BOOLEAN | NUMBER | STRING | list | vector | "'" atom { result = List.new(:quote, List.new(val[1])) } list : '(' atoms ')' { result = val[