0
|
1 |
'\" te
|
|
2 |
.\"
|
11
|
3 |
.\" Copyright 2010 Sun Microsystems, Inc. All rights reserved.
|
0
|
4 |
.\" Use is subject to license terms.
|
|
5 |
.\"
|
11
|
6 |
.\" ident "@(#)logilab-astng.3.sunman 1.2 10/03/16 SMI"
|
0
|
7 |
.\"
|
|
8 |
.TH logilab-astng 3 "30 Apr 2009"
|
|
9 |
.SH NAME
|
|
10 |
logilab-astng \- Python Abstract Syntax Tree New Generation
|
|
11 |
.SH DESCRIPTION
|
|
12 |
The
|
|
13 |
.I logilab-astng
|
|
14 |
The aim of this module is to provide a common base representation of
|
|
15 |
python source code for projects such as pychecker, pyreverse, pylint.
|
|
16 |
|
|
17 |
.LP
|
|
18 |
It is governed by pylint's needs. It extends class defined in the
|
|
19 |
compiler.ast [1] module with some additional methods and attributes.
|
|
20 |
Instance attributes are added by a builder object, which can either
|
|
21 |
generate extended ast by visiting an existant ast tree or by inspecting
|
|
22 |
living object. Methods are added by monkey patching ast classes.
|
|
23 |
|
|
24 |
.LP
|
|
25 |
Main modules are:
|
|
26 |
.LP
|
|
27 |
|
|
28 |
* nodes and scoped_nodes for more information about methods
|
|
29 |
and attributes added to different node classes
|
|
30 |
|
|
31 |
.LP
|
|
32 |
* the manager contains a high level object to get astng trees
|
|
33 |
from source files and living objects. It maintains a cache of
|
|
34 |
previously constructed tree for quick access
|
|
35 |
|
|
36 |
.LP
|
|
37 |
* builder contains the class responsible to build astng trees
|
|
38 |
|
|
39 |
|
|
40 |
.LP
|
|
41 |
|
|
42 |
.SH FILES
|
|
43 |
.TP 2.2i
|
|
44 |
.B /usr/lib/python2.6/vendor-packages/logilab/astng
|
|
45 |
shared object library files
|
|
46 |
|
|
47 |
.SH AUTHORS
|
|
48 |
Sylvain Thenault ([email protected])
|
|
49 |
|
|
50 |
.SH SUPPORT
|
|
51 |
[email protected]
|
|
52 |
|
|
53 |
.SH ATTRIBUTES
|
|
54 |
See
|
|
55 |
.BR attributes (5)
|
|
56 |
for descriptions of the following attributes:
|
|
57 |
.sp
|
|
58 |
.TS
|
|
59 |
box;
|
|
60 |
cbp-1 | cbp-1
|
|
61 |
l | l .
|
|
62 |
ATTRIBUTE TYPE ATTRIBUTE VALUE
|
|
63 |
=
|
11
|
64 |
Availability library/python-2/logilab-astng
|
0
|
65 |
=
|
|
66 |
Interface Stability Uncommitted
|
|
67 |
.TE
|
|
68 |
.SH SEE ALSO
|
|
69 |
.IR logilab-common (3),
|
|
70 |
.IR pylint (1),
|
|
71 |
.SH NOTES
|
|
72 |
|
|
73 |
Documentation for logilab-astng is available on-line at http://www.logilab.org/project/logilab-astng
|
|
74 |
|
|
75 |
Source for logilab-astng is available on http://opensolaris.org.
|