Changeset 243d027
- Timestamp:
- 01/18/13 18:46:38 (12 years ago)
- Branches:
- master
- Children:
- e0cd003
- Parents:
- 18e1952
- git-author:
- Tomasz Obrebski <to@…> (01/18/13 18:46:38)
- git-committer:
- Tomasz Obrebski <to@…> (01/18/13 18:46:38)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r18e1952 r243d027 100 100 install_share: share 101 101 cd $(CUR_DIR)/share && make install; cd $(CUR_DIR) 102 echogrammar compilation...102 #grammar compilation... 103 103 dgc 104 104 -
src/tok.l/Makefile
r5f4d9c3 r243d027 9 9 10 10 tok: lex.yy.c 11 $(CC) $(CFLAGS) - lfl -o tok lex.yy.c$(LDFLAGS)11 $(CC) $(CFLAGS) -o tok lex.yy.c tok_cmdline.c -lfl $(LDFLAGS) 12 12 13 13 lex.yy.c: tok_cmdline.h tok_cmdline.c 14 14 $(FLEX) tok.l 15 15 16 tok_cmdline.h tok_cmdline.c: 16 tok_cmdline.h tok_cmdline.c: tok_cmdline.ggo 17 17 $(GENGETOPT) -i tok_cmdline.ggo --conf-parser --file=tok_cmdline 18 18 -
src/tok.l/tok.l
r5f4d9c3 r243d027 56 56 %% 57 57 58 /*int main(int argc, char** argv)58 int main(int argc, char** argv) 59 59 { 60 if (cmdline_parser(argc, argv, &args) != 0) return 1;60 if (cmdline_parser(argc, argv, &args) != 0) exit(1); 61 61 setlocale(LC_CTYPE,""); 62 62 63 setlocale(LC_COLLATE,""); 63 64 yylex(); 64 65 return 0; 65 } */66 } 66 67 67 68 int yywrap() -
src/tok.l/tok_cmdline.ggo
r5f4d9c3 r243d027 1 1 package "tok" 2 2 version "0.1" 3 usage "tok [OPTIONS]" 4 purpose "tok transforms raw text into UTT format." 3 5 4 option "interactive" i "Interactive mode." flag off 6 description "OPTIONS" 7 8 option "interactive" i "Interactive mode (no output buffering)." flag off 9 10 text " 11 DESCRIPTION 12 13 tok reads from standard input, identifies tokens on the basis of their orthographic form and writes a sequence of segments in UTT format to 14 the standard output. The type of the token is printed as the type field. 15 16 OUTPUT FORMAT 17 18 UTT-file with four fields: start, length, type, and form. In the type field five types of tokens are distinguished: 19 20 W (word) - continuous sequence of letters 21 N (number) - continuous sequence of digits 22 S (space) - continuous sequence of space characters 23 P (punctuation) - single printable character other than W, N, S 24 B (unprintable character) - single unprintable character 25 26 USAGE EXAMPLE 27 28 tok 29 "
Note: See TracChangeset
for help on using the changeset viewer.