Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
8e9cdf8c
Commit
8e9cdf8c
authored
Mar 14, 2013
by
Hilton Bristow
Committed by
hbristow
Jun 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated print formatting
parent
808f9dbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
parse_tree.py
modules/matlab/generator/parse_tree.py
+3
-3
No files found.
modules/matlab/generator/parse_tree.py
View file @
8e9cdf8c
...
@@ -106,9 +106,9 @@ class Namespace(object):
...
@@ -106,9 +106,9 @@ class Namespace(object):
def
__str__
(
self
):
def
__str__
(
self
):
return
'namespace '
+
self
.
name
+
' {
\n\n
'
+
\
return
'namespace '
+
self
.
name
+
' {
\n\n
'
+
\
(
join
((
c
.
__str__
()
for
c
in
self
.
constants
),
'
\n
'
)
+
'
\n\n
'
if
self
.
constants
else
''
)
+
\
(
join
((
f
.
__str__
()
for
f
in
self
.
functions
),
'
\n
'
)
+
'
\n\n
'
if
self
.
functions
else
''
)
+
\
(
join
((
f
.
__str__
()
for
f
in
self
.
functions
),
'
\n
'
)
+
'
\n\n
'
if
self
.
functions
else
''
)
+
\
(
join
((
c
.
__str__
()
for
c
in
self
.
classes
),
'
\n\n
'
)
if
self
.
classes
else
''
)
+
'
\n
};'
(
join
((
c
.
__str__
()
for
c
in
self
.
constants
),
'
\n
'
)
+
'
\n\n
'
if
self
.
constants
else
''
)
+
\
(
join
((
o
.
__str__
()
for
o
in
self
.
classes
),
'
\n\n
'
)
if
self
.
classes
else
''
)
+
'
\n
};'
class
Class
(
object
):
class
Class
(
object
):
def
__init__
(
self
,
name
=
''
,
namespace
=
''
,
constants
=
None
,
functions
=
None
):
def
__init__
(
self
,
name
=
''
,
namespace
=
''
,
constants
=
None
,
functions
=
None
):
...
@@ -133,7 +133,7 @@ class Function(object):
...
@@ -133,7 +133,7 @@ class Function(object):
self
.
opt
=
opt
if
opt
else
[]
self
.
opt
=
opt
if
opt
else
[]
def
__str__
(
self
):
def
__str__
(
self
):
return
fill
((
self
.
rtp
+
' '
if
self
.
rtp
else
''
)
+
(
self
.
clss
+
'::'
if
self
.
clss
else
''
)
+
self
.
name
+
'('
+
\
return
fill
((
self
.
rtp
+
' '
if
self
.
rtp
else
''
)
+
self
.
name
+
'('
+
\
join
((
arg
.
__str__
()
for
arg
in
self
.
req
+
self
.
opt
),
', '
)
+
\
join
((
arg
.
__str__
()
for
arg
in
self
.
req
+
self
.
opt
),
', '
)
+
\
')'
+
(
' const'
if
self
.
const
else
''
)
+
';'
,
80
,
subsequent_indent
=
(
'
\t\t
'
if
self
.
clss
else
'
\t
'
))
')'
+
(
' const'
if
self
.
const
else
''
)
+
';'
,
80
,
subsequent_indent
=
(
'
\t\t
'
if
self
.
clss
else
'
\t
'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment