% /path/to/reia/bin/leex calc_scan.xrl
% /path/to/reia/bin/yecc calc_parse.yrl
% erlc calc_scan.erl
% erlc calc_parse.erl
% erlc calc_eval.erl
This file contains hidden or 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
| #!/usr/bin/env escript | |
| main([]) -> | |
| usage(); | |
| main(["-h"]) -> | |
| usage(); | |
| main(["--help"]) -> | |
| usage(); | |
| main([File]) -> | |
| say_error(file:eval(File)). |
This file contains hidden or 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
| @SET_MAKE@ | |
| ERLC = @ERLC@ | |
| ERL = @ERL@ | |
| RUN_TEST = @ERLANG_LIB_DIR_common_test@/priv/bin/run_test | |
| DIALYZER = @ERLANG_ROOT_DIR@/bin/dialyzer | |
| ROOT = @ROOT@ | |
| all: |
This file contains hidden or 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
| set(:shared_children){ | |
| (exists?(:shared_dirs) ? shared_dirs.split(/\s/).push("log") : %w(log)) | |
| } | |
| namespace :deploy do | |
| desc "finalize update." | |
| task :finalize_update, :except => { :no_release => true } do | |
| run "chmod -R g+w #{latest_release}" if fetch(:group_writable, true) | |
This file contains hidden or 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
| package MIME::Lite::TT::JP::Mobile; | |
| use strict; | |
| use warnings; | |
| use version; our $VERSION = qv('0.0.1'); | |
| use Carp; | |
| use English qw(-no_match_vars); | |
This file contains hidden or 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
| setlocal makeprg=~/bin/ttlint.pl\ % |
This file contains hidden or 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(keep_state). | |
| -author('cooldaemon@gmail.com'). | |
| -export([test/0]). | |
| test() -> | |
| keep_state_sup:start_link(), | |
| {} = keep_state_server:get_state(), | |
| keep_state_server:put_state(foo), | |
| foo = keep_state_server:get_state(), |
This file contains hidden or 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
| xml2_sax_sample: xml2_sax_sample.c | |
| gcc -o xml2_sax_sample `xml2-config --cflags --libs` xml2_sax_sample.c | |
| clean: | |
| rm xml2_sax_sample |
This file contains hidden or 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
| CC = gcc | |
| SOURCES = $(wildcard *.m) | |
| OBJECTS = $(SOURCES:%.m=%.o) | |
| TARGET = test | |
| $(TARGET): $(OBJECTS) | |
| $(CC) $(OBJECTS) -o $@ -framework Foundation | |
| .m.o: |
This file contains hidden or 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
| CC = gcc | |
| SOURCES = $(wildcard *.c) | |
| OBJECTS = $(SOURCES:%.c=%.o) | |
| TARGET = test | |
| $(TARGET): $(OBJECTS) | |
| $(CC) $(OBJECTS) -o $@ \ | |
| -ltokyocabinet -lz -lbz2 -lpthread -lm -lc |