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
| % git checkout 5dfe53056cbd9762416c973a96bc1d3cd2014ba9 . | |
| % make -e CCOMP=clang | |
| make -C dsls put_dsl_parse.o | |
| clang -o lemon lemon.c | |
| lemon.c:2277:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] | |
| static preprocess_input(char *z){ | |
| ~~~~~~ ^ | |
| lemon.c:2327:1: warning: control may reach end of non-void function [-Wreturn-type] | |
| } | |
| ^ |
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
| % make -e CCOMP=clang | |
| make -C dsls put_dsl_parse.o | |
| clang -o lemon lemon.c | |
| lemon.c:2277:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] | |
| static preprocess_input(char *z){ | |
| ~~~~~~ ^ | |
| lemon.c:2327:1: warning: control may reach end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| lemon.c:2863:6: warning: use of out-of-scope declaration of 'access' |
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
| % make | |
| tclsh tools/assemble.tcl sqawk-dev.tcl > sqawk.tcl | |
| tclsh tests.tcl | |
| ==== test1 Handle broken pipe, read from stdin FAILED | |
| ==== Contents of test case: | |
| with-temp-files filename ch { | |
| puts $ch "line 1\nline 2\nline 3" |
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
| $ make | |
| make -C dsls put_dsl_parse.o | |
| make[1]: Entering directory '/home/jungle/bin/miller/c/dsls' | |
| gcc -o lemon lemon.c | |
| ./lemon put_dsl_parse.y | |
| mv put_dsl_parse.c put_dsl_parse.c.tmp | |
| sed \ | |
| -e 's/ParseTrace/put_dsl_ParseTrace/g' \ | |
| -e 's/ParseTokenName/put_dsl_ParseTokenName/g' \ | |
| -e 's/lemon_parser_alloc/put_dsl_lemon_parser_alloc/g' \ |
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
| % sh test/run | |
| test/../mlr cat test/input/abixy | |
| test/../mlr cat /dev/null | |
| test/../mlr cut -f a,x test/input/abixy | |
| test/../mlr cut --complement -f a,x test/input/abixy | |
| test/../mlr having-fields --at-least a,b test/input/abixy | |
| test/../mlr having-fields --at-least a,c test/input/abixy | |
| test/../mlr having-fields --at-least a,b,i,x,y test/input/abixy | |
| test/../mlr having-fields --which-are a,b,i,x test/input/abixy |
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
| make -C dsls put_dsl_parse.o | |
| clang -o lemon lemon.c | |
| lemon.c:2277:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] | |
| static preprocess_input(char *z){ | |
| ~~~~~~ ^ | |
| lemon.c:2327:1: warning: control may reach end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| lemon.c:2863:6: warning: use of out-of-scope declaration of 'access' | |
| if (access(buf,004)==0) { |
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
| make -C dsls put_dsl_parse.o | |
| gcc -o lemon lemon.c | |
| ./lemon put_dsl_parse.y | |
| mv put_dsl_parse.c put_dsl_parse.c.tmp | |
| sed -e 's/ParseTrace/put_dsl_ParseTrace/g' -e 's/ParseTokenName/put_dsl_ParseTokenName/g' -e 's/lemon_parser_alloc/put_dsl_lemon_parser_alloc/g' -e 's/lemon_parser_free/put_dsl_lemon_parser_free/g' -e 's/lemon_parser_parse_token/put_dsl_lemon_parser_parse_token/g' -e 's/yy_destructor/put_dsl_yy_destructor/g' put_dsl_parse.c.tmp > put_dsl_parse.c | |
| rm -f put_dsl_parse.c.tmp | |
| gcc -I.. -O3 -c -std=gnu99 put_dsl_parse.c | |
| make -C dsls put_dsl_lexer.o | |
| flex --prefix=put_dsl_lexer_ --outfile=put_dsl_lexer.c --header-file=put_dsl_lexer.h put_dsl_lexer.l | |
| gcc -I.. -O3 -c -std=gnu99 put_dsl_lexer.c |
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
| % make | |
| make -C dsls put_dsl_parse.o | |
| gcc -o lemon lemon.c | |
| ./lemon put_dsl_parse.y | |
| mv put_dsl_parse.c put_dsl_parse.c.tmp | |
| sed -e 's/ParseTrace/put_dsl_ParseTrace/g' -e 's/ParseTokenName/put_dsl_ParseTokenName/g' -e 's/lemon_parser_alloc/put_dsl_lemon_parser_alloc/g' -e 's/lemon_parser_free/put_dsl_lemon_parser_free/g' -e 's/lemon_parser_parse_token/put_dsl_lemon_parser_parse_token/g' -e 's/yy_destructor/put_dsl_yy_destructor/g' put_dsl_parse.c.tmp > put_dsl_parse.c | |
| rm -f put_dsl_parse.c.tmp | |
| gcc -I.. -O3 -c -std=gnu99 put_dsl_parse.c | |
| make -C dsls put_dsl_lexer.o | |
| flex --prefix=put_dsl_lexer_ --outfile=put_dsl_lexer.c --header-file=put_dsl_lexer.h put_dsl_lexer.l |
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
| make | |
| tclsh tools/assemble.tcl sqawk-dev.tcl > sqawk.tcl | |
| tclsh tests.tcl | |
| ==== test1 Handle broken pipe, read from stdin FAILED | |
| ==== Contents of test case: | |
| with-temp-files filename ch { | |
| puts $ch "line 1\nline 2\nline 3" |
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
| Say I have data like this: | |
| Merchant ID,Txn Type | |
| 30422,Sale | |
| 30430,Sale | |
| 30414,Sale | |
| 30391,Sale | |
| 30412,Sale | |
| 30402,Sale | |
| 30405,Sale |