1tt(1)                           Treetop v1.4.14                          tt(1)
2
3
4

NAME

6       tt - Compile a treetop grammar file to ruby source code
7

SYNOPSIS

9       tt [options] grammar_file[.treetop|.tt] ...
10
11

DESCRIPTION

13       The  tt program is a command-line script to compile .treetop files into
14       Ruby source code.
15
16       The tt program takes a list of files with a .treetop extension and com‐
17       piles  them into .rb files of the same name. You can then require these
18       files like any other Ruby script.
19
20       Alternately, you can supply just one .treetop file and  a  -o  flag  to
21       specify the name of the output file.
22
23       Note: while treetop grammar files must have a supported filename exten‐
24       sions, (.treetop or .tt), the extension name is not required when call‐
25       ing the compiler with grammar file names.
26

OPTIONS

28       -o, --output FILENAME
29
30           Write parser source to FILENAME.
31
32       -f, --force
33
34           Overwrite existing output file(s)
35
36       -v, --version
37
38           Show Treetop version
39
40       -h, --help
41
42

EXAMPLES

44       1 grammar -> 1 parser source
45
46           tt foo.tt
47
48       2 grammars -> 2 separate parsers
49
50           tt foo bar.treetop
51
52       Alternately named output file
53
54           tt -o alterate_name.rb foo
55

SEE ALSO

57       The treetop website:
58
59       http://cjheath.github.io/treetop/
60
61
62
63Treetop                           2013-06-19                             tt(1)
Impressum