idl-parser 0.0.3__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {idl_parser-0.0.3 → idl_parser-0.0.4}/PKG-INFO +28 -67
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser.egg-info/PKG-INFO +28 -67
- idl_parser-0.0.4/setup.py +33 -0
- idl_parser-0.0.3/setup.py +0 -88
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/__init__.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/const.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/enum.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/interface.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/module.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/node.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/parser.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/struct.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/token_buffer.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/type.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser/typedef.py +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser.egg-info/SOURCES.txt +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser.egg-info/dependency_links.txt +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/idl_parser.egg-info/top_level.txt +0 -0
- {idl_parser-0.0.3 → idl_parser-0.0.4}/setup.cfg +0 -0
|
@@ -1,75 +1,27 @@
|
|
|
1
1
|
Metadata-Version: 1.1
|
|
2
2
|
Name: idl_parser
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: OMG IDL
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"""
|
|
8
|
-
idl_parser package example
|
|
9
|
-
"""
|
|
10
|
-
|
|
11
|
-
from idl_parser import parser
|
|
12
|
-
parser_ = parser.IDLParser()
|
|
13
|
-
idl_str = """
|
|
14
|
-
module my_module {
|
|
15
|
-
struct Time {
|
|
16
|
-
long sec;
|
|
17
|
-
long usec;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
typedef sequence<double> DoubleSeq;
|
|
21
|
-
|
|
22
|
-
struct TimedDoubleSeq {
|
|
23
|
-
Time tm;
|
|
24
|
-
DoubleSeq data;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
enum RETURN_VALUE {
|
|
28
|
-
RETURN_OK,
|
|
29
|
-
RETURN_FAILED,
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
interface DataGetter {
|
|
33
|
-
RETURN_VALUE getData(out TimedDoubleSeq data);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
"""
|
|
38
|
-
|
|
39
|
-
global_module = parser_.load(idl_str)
|
|
40
|
-
my_module = global_module.module_by_name('my_module')
|
|
41
|
-
dataGetter = my_module.interface_by_name('DataGetter')
|
|
42
|
-
print 'DataGetter interface'
|
|
43
|
-
for m in dataGetter.methods:
|
|
44
|
-
print '- method:'
|
|
45
|
-
print ' name:', m.name
|
|
46
|
-
print ' returns:', m.returns.name
|
|
47
|
-
print ' arguments:'
|
|
48
|
-
for a in m.arguments:
|
|
49
|
-
print ' name:', a.name
|
|
50
|
-
print ' type:', a.type
|
|
51
|
-
print ' direction:', a.direction
|
|
52
|
-
|
|
53
|
-
doubleSeq = my_module.typedef_by_name('DoubleSeq')
|
|
54
|
-
print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
|
|
55
|
-
|
|
56
|
-
timedDoubleSeq = my_module.struct_by_name('TimedDoubleSeq')
|
|
57
|
-
print 'TimedDoubleSeq'
|
|
58
|
-
for m in timedDoubleSeq.members:
|
|
59
|
-
print '- member:'
|
|
60
|
-
print ' name:', m.name
|
|
61
|
-
print ' type:', m.type.name
|
|
62
|
-
|
|
3
|
+
Version: 0.0.4
|
|
4
|
+
Summary: Very simple OMG IDL (Interface Definition Language) parser. This parses IDL files and outputs intermediate class objects.
|
|
63
5
|
Home-page: http://www.sugarsweetrobotics.com/
|
|
64
6
|
Author: ysuga
|
|
65
7
|
Author-email: ysuga@ysuga.net
|
|
66
8
|
License: GPLv3
|
|
67
9
|
Download-URL: https://github.com/sugarsweetrobotics/idl_parser
|
|
68
|
-
Description:
|
|
10
|
+
Description: # idl_parser
|
|
11
|
+
|
|
12
|
+
[](https://travis-ci.org/sugarsweetrobotics/idl_parser)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Description
|
|
16
|
+
|
|
17
|
+
OMG IDL file parser. This library just parse IDL files, and output intermidiate type objects.
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
```
|
|
69
21
|
"""
|
|
70
|
-
|
|
22
|
+
|
|
71
23
|
"""
|
|
72
|
-
|
|
24
|
+
|
|
73
25
|
from idl_parser import parser
|
|
74
26
|
parser_ = parser.IDLParser()
|
|
75
27
|
idl_str = """
|
|
@@ -80,7 +32,7 @@ Description:
|
|
|
80
32
|
};
|
|
81
33
|
|
|
82
34
|
typedef sequence<double> DoubleSeq;
|
|
83
|
-
|
|
35
|
+
|
|
84
36
|
struct TimedDoubleSeq {
|
|
85
37
|
Time tm;
|
|
86
38
|
DoubleSeq data;
|
|
@@ -97,7 +49,7 @@ Description:
|
|
|
97
49
|
|
|
98
50
|
};
|
|
99
51
|
"""
|
|
100
|
-
|
|
52
|
+
|
|
101
53
|
global_module = parser_.load(idl_str)
|
|
102
54
|
my_module = global_module.module_by_name('my_module')
|
|
103
55
|
dataGetter = my_module.interface_by_name('DataGetter')
|
|
@@ -111,7 +63,7 @@ Description:
|
|
|
111
63
|
print ' name:', a.name
|
|
112
64
|
print ' type:', a.type
|
|
113
65
|
print ' direction:', a.direction
|
|
114
|
-
|
|
66
|
+
|
|
115
67
|
doubleSeq = my_module.typedef_by_name('DoubleSeq')
|
|
116
68
|
print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
|
|
117
69
|
|
|
@@ -120,7 +72,16 @@ Description:
|
|
|
120
72
|
for m in timedDoubleSeq.members:
|
|
121
73
|
print '- member:'
|
|
122
74
|
print ' name:', m.name
|
|
123
|
-
print ' type:', m.type.name
|
|
75
|
+
print ' type:', m.type.name
|
|
76
|
+
```
|
|
77
|
+
## How to install
|
|
78
|
+
sudo pip install idl_parser
|
|
79
|
+
|
|
80
|
+
## Copyright
|
|
81
|
+
* author: Yuki Suga
|
|
82
|
+
* copyright: Yuki Suga @ ssr.tokyo
|
|
83
|
+
* license: GPLv3
|
|
84
|
+
|
|
124
85
|
|
|
125
86
|
Platform: UNKNOWN
|
|
126
87
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -1,75 +1,27 @@
|
|
|
1
1
|
Metadata-Version: 1.1
|
|
2
2
|
Name: idl-parser
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: OMG IDL
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"""
|
|
8
|
-
idl_parser package example
|
|
9
|
-
"""
|
|
10
|
-
|
|
11
|
-
from idl_parser import parser
|
|
12
|
-
parser_ = parser.IDLParser()
|
|
13
|
-
idl_str = """
|
|
14
|
-
module my_module {
|
|
15
|
-
struct Time {
|
|
16
|
-
long sec;
|
|
17
|
-
long usec;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
typedef sequence<double> DoubleSeq;
|
|
21
|
-
|
|
22
|
-
struct TimedDoubleSeq {
|
|
23
|
-
Time tm;
|
|
24
|
-
DoubleSeq data;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
enum RETURN_VALUE {
|
|
28
|
-
RETURN_OK,
|
|
29
|
-
RETURN_FAILED,
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
interface DataGetter {
|
|
33
|
-
RETURN_VALUE getData(out TimedDoubleSeq data);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
"""
|
|
38
|
-
|
|
39
|
-
global_module = parser_.load(idl_str)
|
|
40
|
-
my_module = global_module.module_by_name('my_module')
|
|
41
|
-
dataGetter = my_module.interface_by_name('DataGetter')
|
|
42
|
-
print 'DataGetter interface'
|
|
43
|
-
for m in dataGetter.methods:
|
|
44
|
-
print '- method:'
|
|
45
|
-
print ' name:', m.name
|
|
46
|
-
print ' returns:', m.returns.name
|
|
47
|
-
print ' arguments:'
|
|
48
|
-
for a in m.arguments:
|
|
49
|
-
print ' name:', a.name
|
|
50
|
-
print ' type:', a.type
|
|
51
|
-
print ' direction:', a.direction
|
|
52
|
-
|
|
53
|
-
doubleSeq = my_module.typedef_by_name('DoubleSeq')
|
|
54
|
-
print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
|
|
55
|
-
|
|
56
|
-
timedDoubleSeq = my_module.struct_by_name('TimedDoubleSeq')
|
|
57
|
-
print 'TimedDoubleSeq'
|
|
58
|
-
for m in timedDoubleSeq.members:
|
|
59
|
-
print '- member:'
|
|
60
|
-
print ' name:', m.name
|
|
61
|
-
print ' type:', m.type.name
|
|
62
|
-
|
|
3
|
+
Version: 0.0.4
|
|
4
|
+
Summary: Very simple OMG IDL (Interface Definition Language) parser. This parses IDL files and outputs intermediate class objects.
|
|
63
5
|
Home-page: http://www.sugarsweetrobotics.com/
|
|
64
6
|
Author: ysuga
|
|
65
7
|
Author-email: ysuga@ysuga.net
|
|
66
8
|
License: GPLv3
|
|
67
9
|
Download-URL: https://github.com/sugarsweetrobotics/idl_parser
|
|
68
|
-
Description:
|
|
10
|
+
Description: # idl_parser
|
|
11
|
+
|
|
12
|
+
[](https://travis-ci.org/sugarsweetrobotics/idl_parser)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Description
|
|
16
|
+
|
|
17
|
+
OMG IDL file parser. This library just parse IDL files, and output intermidiate type objects.
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
```
|
|
69
21
|
"""
|
|
70
|
-
|
|
22
|
+
|
|
71
23
|
"""
|
|
72
|
-
|
|
24
|
+
|
|
73
25
|
from idl_parser import parser
|
|
74
26
|
parser_ = parser.IDLParser()
|
|
75
27
|
idl_str = """
|
|
@@ -80,7 +32,7 @@ Description:
|
|
|
80
32
|
};
|
|
81
33
|
|
|
82
34
|
typedef sequence<double> DoubleSeq;
|
|
83
|
-
|
|
35
|
+
|
|
84
36
|
struct TimedDoubleSeq {
|
|
85
37
|
Time tm;
|
|
86
38
|
DoubleSeq data;
|
|
@@ -97,7 +49,7 @@ Description:
|
|
|
97
49
|
|
|
98
50
|
};
|
|
99
51
|
"""
|
|
100
|
-
|
|
52
|
+
|
|
101
53
|
global_module = parser_.load(idl_str)
|
|
102
54
|
my_module = global_module.module_by_name('my_module')
|
|
103
55
|
dataGetter = my_module.interface_by_name('DataGetter')
|
|
@@ -111,7 +63,7 @@ Description:
|
|
|
111
63
|
print ' name:', a.name
|
|
112
64
|
print ' type:', a.type
|
|
113
65
|
print ' direction:', a.direction
|
|
114
|
-
|
|
66
|
+
|
|
115
67
|
doubleSeq = my_module.typedef_by_name('DoubleSeq')
|
|
116
68
|
print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
|
|
117
69
|
|
|
@@ -120,7 +72,16 @@ Description:
|
|
|
120
72
|
for m in timedDoubleSeq.members:
|
|
121
73
|
print '- member:'
|
|
122
74
|
print ' name:', m.name
|
|
123
|
-
print ' type:', m.type.name
|
|
75
|
+
print ' type:', m.type.name
|
|
76
|
+
```
|
|
77
|
+
## How to install
|
|
78
|
+
sudo pip install idl_parser
|
|
79
|
+
|
|
80
|
+
## Copyright
|
|
81
|
+
* author: Yuki Suga
|
|
82
|
+
* copyright: Yuki Suga @ ssr.tokyo
|
|
83
|
+
* license: GPLv3
|
|
84
|
+
|
|
124
85
|
|
|
125
86
|
Platform: UNKNOWN
|
|
126
87
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
long_description = open('README.md', 'r').read()
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
setup(name='idl_parser',
|
|
10
|
+
version='0.0.4',
|
|
11
|
+
url = 'http://www.sugarsweetrobotics.com/',
|
|
12
|
+
author = 'ysuga',
|
|
13
|
+
author_email = 'ysuga@ysuga.net',
|
|
14
|
+
description = 'Very simple OMG IDL (Interface Definition Language) parser. This parses IDL files and outputs intermediate class objects.',
|
|
15
|
+
long_description = long_description,
|
|
16
|
+
download_url = 'https://github.com/sugarsweetrobotics/idl_parser',
|
|
17
|
+
packages = ["idl_parser"],
|
|
18
|
+
#py_modules = ["pepper_kinematics"],
|
|
19
|
+
license = 'GPLv3',
|
|
20
|
+
install_requires = [''],
|
|
21
|
+
classifiers = [
|
|
22
|
+
'Development Status :: 5 - Production/Stable',
|
|
23
|
+
'Environment :: Console',
|
|
24
|
+
'Intended Audience :: Developers',
|
|
25
|
+
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
26
|
+
'Natural Language :: English',
|
|
27
|
+
'Operating System :: OS Independent',
|
|
28
|
+
'Programming Language :: Python',
|
|
29
|
+
'Topic :: Scientific/Engineering',
|
|
30
|
+
],
|
|
31
|
+
#test_suite = "foo_test.suite",
|
|
32
|
+
#package_dir = {'': 'src'}
|
|
33
|
+
)
|
idl_parser-0.0.3/setup.py
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
from setuptools import setup, find_packages
|
|
2
|
-
import sys
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
long_description = '''
|
|
7
|
-
"""
|
|
8
|
-
idl_parser package example
|
|
9
|
-
"""
|
|
10
|
-
|
|
11
|
-
from idl_parser import parser
|
|
12
|
-
parser_ = parser.IDLParser()
|
|
13
|
-
idl_str = """
|
|
14
|
-
module my_module {
|
|
15
|
-
struct Time {
|
|
16
|
-
long sec;
|
|
17
|
-
long usec;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
typedef sequence<double> DoubleSeq;
|
|
21
|
-
|
|
22
|
-
struct TimedDoubleSeq {
|
|
23
|
-
Time tm;
|
|
24
|
-
DoubleSeq data;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
enum RETURN_VALUE {
|
|
28
|
-
RETURN_OK,
|
|
29
|
-
RETURN_FAILED,
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
interface DataGetter {
|
|
33
|
-
RETURN_VALUE getData(out TimedDoubleSeq data);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
"""
|
|
38
|
-
|
|
39
|
-
global_module = parser_.load(idl_str)
|
|
40
|
-
my_module = global_module.module_by_name('my_module')
|
|
41
|
-
dataGetter = my_module.interface_by_name('DataGetter')
|
|
42
|
-
print 'DataGetter interface'
|
|
43
|
-
for m in dataGetter.methods:
|
|
44
|
-
print '- method:'
|
|
45
|
-
print ' name:', m.name
|
|
46
|
-
print ' returns:', m.returns.name
|
|
47
|
-
print ' arguments:'
|
|
48
|
-
for a in m.arguments:
|
|
49
|
-
print ' name:', a.name
|
|
50
|
-
print ' type:', a.type
|
|
51
|
-
print ' direction:', a.direction
|
|
52
|
-
|
|
53
|
-
doubleSeq = my_module.typedef_by_name('DoubleSeq')
|
|
54
|
-
print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
|
|
55
|
-
|
|
56
|
-
timedDoubleSeq = my_module.struct_by_name('TimedDoubleSeq')
|
|
57
|
-
print 'TimedDoubleSeq'
|
|
58
|
-
for m in timedDoubleSeq.members:
|
|
59
|
-
print '- member:'
|
|
60
|
-
print ' name:', m.name
|
|
61
|
-
print ' type:', m.type.name
|
|
62
|
-
'''
|
|
63
|
-
|
|
64
|
-
setup(name='idl_parser',
|
|
65
|
-
version='0.0.3',
|
|
66
|
-
url = 'http://www.sugarsweetrobotics.com/',
|
|
67
|
-
author = 'ysuga',
|
|
68
|
-
author_email = 'ysuga@ysuga.net',
|
|
69
|
-
description = 'OMG IDL Parser\n\n' + long_description,
|
|
70
|
-
long_description = long_description,
|
|
71
|
-
download_url = 'https://github.com/sugarsweetrobotics/idl_parser',
|
|
72
|
-
packages = ["idl_parser"],
|
|
73
|
-
#py_modules = ["pepper_kinematics"],
|
|
74
|
-
license = 'GPLv3',
|
|
75
|
-
install_requires = [''],
|
|
76
|
-
classifiers = [
|
|
77
|
-
'Development Status :: 5 - Production/Stable',
|
|
78
|
-
'Environment :: Console',
|
|
79
|
-
'Intended Audience :: Developers',
|
|
80
|
-
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
81
|
-
'Natural Language :: English',
|
|
82
|
-
'Operating System :: OS Independent',
|
|
83
|
-
'Programming Language :: Python',
|
|
84
|
-
'Topic :: Scientific/Engineering',
|
|
85
|
-
],
|
|
86
|
-
#test_suite = "foo_test.suite",
|
|
87
|
-
#package_dir = {'': 'src'}
|
|
88
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|