-
Notifications
You must be signed in to change notification settings - Fork 0
/
nona.1
88 lines (84 loc) · 2.19 KB
/
nona.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.\" Process this file with
.\" groff -man -Tascii foo.1
.\"
.TH NONA 1 "5 Apr 2001" COCOM "User Manuals"
.SH NAME
nona \- code selector description translator
.SH SYNOPSIS
.B nona [ -c++ -v -debug -export -pprefix]
.I specification-file
.SH DESCRIPTION
Command
.B nona
translates code selector description (CS) which is
described in specification file into code for solving code
selection (tree matcher) and possibly other back-end tasks. The
specification file must have suffix
.B `.nona'.
Tree matcher determined by CS builds cover of low level internal
representation (which must be a directed acyclic graph) by the tree
patterns with minimal cost on the first bottom up pass and fulfills
actions associated with the choiced tree patterns on the second bottom
up pass.
.PP
Generated code consists of interface and implementation files
having the same names as one of specification file and
correspondingly suffixes
.B `.h'
and
.B `.c'
(C code) or
.B `.cpp'
(C++ code).
.PP
Full documentation of OKA is in OKA User's manual.
.SH OPTIONS
The options which are known for NONA are:
.IP -c++
NONA generates C++ code instead of C code (default).
.IP -v
NONA outputs statistic information to standard output stream.
.IP -debug
NONA outputs debugging information during execution of
function `CS_find_cover' and `CS_traverse_cover' (see
generated code).
.IP -export
NONA generates macros defining identifiers of terminals as
integer constants and inclusion of their in the interface
file. Usually the user himself declares the identifiers in
a C declarations section.
.IP -pprefix
NONA generates names starting with prefix `prefix' instead of
`CS'.
.SH FILES
.I file.nona
.RS
NONA specification file
.RE
.I file.c
.RS
generated C implementation file
.RE
.I file.cpp
.RS
generated C++ implementation file
.RE
.I file.h
.RS
generated interface file
.RE
There are no any temporary files used by NONA.
.SH ENVIRONMENT
There are no environment variables which affect NONA behavior.
.SH DIAGNOSTICS
NONA diagnostics is self-explanatory.
.SH AUTHOR
Vladimir N. Makarov, vmakarov@gcc.gnu.org
.SH "SEE ALSO"
.BR msta (1),
.BR shilka (1),
.BR sprut (1),
.BR oka (1).
NONA manual.
.SH BUGS
Please, report bugs to https://github.com/dino-lang/dino/issues.