idl-parser 0.0.1__tar.gz → 0.0.2__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.2/PKG-INFO +75 -0
- idl_parser-0.0.2/idl_parser.egg-info/PKG-INFO +75 -0
- idl_parser-0.0.2/setup.py +88 -0
- idl_parser-0.0.1/PKG-INFO +0 -19
- idl_parser-0.0.1/idl_parser.egg-info/PKG-INFO +0 -19
- idl_parser-0.0.1/setup.py +0 -28
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/__init__.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/const.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/enum.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/interface.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/module.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/node.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/parser.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/struct.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/token_buffer.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/type.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser/typedef.py +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser.egg-info/SOURCES.txt +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser.egg-info/dependency_links.txt +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/idl_parser.egg-info/top_level.txt +0 -0
- {idl_parser-0.0.1 → idl_parser-0.0.2}/setup.cfg +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 1.1
|
|
2
|
+
Name: idl_parser
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: OMG IDL Parser
|
|
5
|
+
Home-page: http://www.sugarsweetrobotics.com/
|
|
6
|
+
Author: ysuga
|
|
7
|
+
Author-email: ysuga@ysuga.net
|
|
8
|
+
License: GPLv3
|
|
9
|
+
Download-URL: https://github.com/sugarsweetrobotics/idl_parser
|
|
10
|
+
Description:
|
|
11
|
+
"""
|
|
12
|
+
idl_parser package example
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from idl_parser import parser
|
|
16
|
+
parser_ = parser.IDLParser()
|
|
17
|
+
idl_str = """
|
|
18
|
+
module my_module {
|
|
19
|
+
struct Time {
|
|
20
|
+
long sec;
|
|
21
|
+
long usec;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
typedef sequence<double> DoubleSeq;
|
|
25
|
+
|
|
26
|
+
struct TimedDoubleSeq {
|
|
27
|
+
Time tm;
|
|
28
|
+
DoubleSeq data;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
enum RETURN_VALUE {
|
|
32
|
+
RETURN_OK,
|
|
33
|
+
RETURN_FAILED,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
interface DataGetter {
|
|
37
|
+
RETURN_VALUE getData(out TimedDoubleSeq data);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
};
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
global_module = parser_.load(idl_str)
|
|
44
|
+
my_module = global_module.module_by_name('my_module')
|
|
45
|
+
dataGetter = my_module.interface_by_name('DataGetter')
|
|
46
|
+
print 'DataGetter interface'
|
|
47
|
+
for m in dataGetter.methods:
|
|
48
|
+
print '- method:'
|
|
49
|
+
print ' name:', m.name
|
|
50
|
+
print ' returns:', m.returns.name
|
|
51
|
+
print ' arguments:'
|
|
52
|
+
for a in m.arguments:
|
|
53
|
+
print ' name:', a.name
|
|
54
|
+
print ' type:', a.type
|
|
55
|
+
print ' direction:', a.direction
|
|
56
|
+
|
|
57
|
+
doubleSeq = my_module.typedef_by_name('DoubleSeq')
|
|
58
|
+
print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
|
|
59
|
+
|
|
60
|
+
timedDoubleSeq = my_module.struct_by_name('TimedDoubleSeq')
|
|
61
|
+
print 'TimedDoubleSeq'
|
|
62
|
+
for m in timedDoubleSeq.members:
|
|
63
|
+
print '- member:'
|
|
64
|
+
print ' name:', m.name
|
|
65
|
+
print ' type:', m.type.name
|
|
66
|
+
|
|
67
|
+
Platform: UNKNOWN
|
|
68
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
69
|
+
Classifier: Environment :: Console
|
|
70
|
+
Classifier: Intended Audience :: Developers
|
|
71
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
72
|
+
Classifier: Natural Language :: English
|
|
73
|
+
Classifier: Operating System :: OS Independent
|
|
74
|
+
Classifier: Programming Language :: Python
|
|
75
|
+
Classifier: Topic :: Scientific/Engineering
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 1.1
|
|
2
|
+
Name: idl-parser
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: OMG IDL Parser
|
|
5
|
+
Home-page: http://www.sugarsweetrobotics.com/
|
|
6
|
+
Author: ysuga
|
|
7
|
+
Author-email: ysuga@ysuga.net
|
|
8
|
+
License: GPLv3
|
|
9
|
+
Download-URL: https://github.com/sugarsweetrobotics/idl_parser
|
|
10
|
+
Description:
|
|
11
|
+
"""
|
|
12
|
+
idl_parser package example
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from idl_parser import parser
|
|
16
|
+
parser_ = parser.IDLParser()
|
|
17
|
+
idl_str = """
|
|
18
|
+
module my_module {
|
|
19
|
+
struct Time {
|
|
20
|
+
long sec;
|
|
21
|
+
long usec;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
typedef sequence<double> DoubleSeq;
|
|
25
|
+
|
|
26
|
+
struct TimedDoubleSeq {
|
|
27
|
+
Time tm;
|
|
28
|
+
DoubleSeq data;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
enum RETURN_VALUE {
|
|
32
|
+
RETURN_OK,
|
|
33
|
+
RETURN_FAILED,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
interface DataGetter {
|
|
37
|
+
RETURN_VALUE getData(out TimedDoubleSeq data);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
};
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
global_module = parser_.load(idl_str)
|
|
44
|
+
my_module = global_module.module_by_name('my_module')
|
|
45
|
+
dataGetter = my_module.interface_by_name('DataGetter')
|
|
46
|
+
print 'DataGetter interface'
|
|
47
|
+
for m in dataGetter.methods:
|
|
48
|
+
print '- method:'
|
|
49
|
+
print ' name:', m.name
|
|
50
|
+
print ' returns:', m.returns.name
|
|
51
|
+
print ' arguments:'
|
|
52
|
+
for a in m.arguments:
|
|
53
|
+
print ' name:', a.name
|
|
54
|
+
print ' type:', a.type
|
|
55
|
+
print ' direction:', a.direction
|
|
56
|
+
|
|
57
|
+
doubleSeq = my_module.typedef_by_name('DoubleSeq')
|
|
58
|
+
print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
|
|
59
|
+
|
|
60
|
+
timedDoubleSeq = my_module.struct_by_name('TimedDoubleSeq')
|
|
61
|
+
print 'TimedDoubleSeq'
|
|
62
|
+
for m in timedDoubleSeq.members:
|
|
63
|
+
print '- member:'
|
|
64
|
+
print ' name:', m.name
|
|
65
|
+
print ' type:', m.type.name
|
|
66
|
+
|
|
67
|
+
Platform: UNKNOWN
|
|
68
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
69
|
+
Classifier: Environment :: Console
|
|
70
|
+
Classifier: Intended Audience :: Developers
|
|
71
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
72
|
+
Classifier: Natural Language :: English
|
|
73
|
+
Classifier: Operating System :: OS Independent
|
|
74
|
+
Classifier: Programming Language :: Python
|
|
75
|
+
Classifier: Topic :: Scientific/Engineering
|
|
@@ -0,0 +1,88 @@
|
|
|
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.2',
|
|
66
|
+
url = 'http://www.sugarsweetrobotics.com/',
|
|
67
|
+
author = 'ysuga',
|
|
68
|
+
author_email = 'ysuga@ysuga.net',
|
|
69
|
+
description = 'OMG IDL Parser',
|
|
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
|
+
)
|
idl_parser-0.0.1/PKG-INFO
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.1
|
|
2
|
-
Name: idl_parser
|
|
3
|
-
Version: 0.0.1
|
|
4
|
-
Summary: OMG IDL Parser
|
|
5
|
-
Home-page: http://www.sugarsweetrobotics.com/
|
|
6
|
-
Author: ysuga
|
|
7
|
-
Author-email: ysuga@ysuga.net
|
|
8
|
-
License: GPLv3
|
|
9
|
-
Download-URL: https://github.com/sugarsweetrobotics/idl_parser
|
|
10
|
-
Description: UNKNOWN
|
|
11
|
-
Platform: UNKNOWN
|
|
12
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
-
Classifier: Environment :: Console
|
|
14
|
-
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
16
|
-
Classifier: Natural Language :: English
|
|
17
|
-
Classifier: Operating System :: OS Independent
|
|
18
|
-
Classifier: Programming Language :: Python
|
|
19
|
-
Classifier: Topic :: Scientific/Engineering
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.1
|
|
2
|
-
Name: idl-parser
|
|
3
|
-
Version: 0.0.1
|
|
4
|
-
Summary: OMG IDL Parser
|
|
5
|
-
Home-page: http://www.sugarsweetrobotics.com/
|
|
6
|
-
Author: ysuga
|
|
7
|
-
Author-email: ysuga@ysuga.net
|
|
8
|
-
License: GPLv3
|
|
9
|
-
Download-URL: https://github.com/sugarsweetrobotics/idl_parser
|
|
10
|
-
Description: UNKNOWN
|
|
11
|
-
Platform: UNKNOWN
|
|
12
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
-
Classifier: Environment :: Console
|
|
14
|
-
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
16
|
-
Classifier: Natural Language :: English
|
|
17
|
-
Classifier: Operating System :: OS Independent
|
|
18
|
-
Classifier: Programming Language :: Python
|
|
19
|
-
Classifier: Topic :: Scientific/Engineering
|
idl_parser-0.0.1/setup.py
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
from setuptools import setup, find_packages
|
|
2
|
-
import sys
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
setup(name='idl_parser',
|
|
6
|
-
version='0.0.1',
|
|
7
|
-
url = 'http://www.sugarsweetrobotics.com/',
|
|
8
|
-
author = 'ysuga',
|
|
9
|
-
author_email = 'ysuga@ysuga.net',
|
|
10
|
-
description = 'OMG IDL Parser',
|
|
11
|
-
download_url = 'https://github.com/sugarsweetrobotics/idl_parser',
|
|
12
|
-
packages = ["idl_parser"],
|
|
13
|
-
#py_modules = ["pepper_kinematics"],
|
|
14
|
-
license = 'GPLv3',
|
|
15
|
-
install_requires = [''],
|
|
16
|
-
classifiers = [
|
|
17
|
-
'Development Status :: 5 - Production/Stable',
|
|
18
|
-
'Environment :: Console',
|
|
19
|
-
'Intended Audience :: Developers',
|
|
20
|
-
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
21
|
-
'Natural Language :: English',
|
|
22
|
-
'Operating System :: OS Independent',
|
|
23
|
-
'Programming Language :: Python',
|
|
24
|
-
'Topic :: Scientific/Engineering',
|
|
25
|
-
],
|
|
26
|
-
#test_suite = "foo_test.suite",
|
|
27
|
-
#package_dir = {'': 'src'}
|
|
28
|
-
)
|
|
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
|