Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
3ea53872
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "14f17de5d1ab4e47e37ff8e5132494c0f06d3151"
Commit
3ea53872
authored
Aug 03, 2009
by
Peter Eastman
Browse files
Fixed a parsing bug
parent
195a36fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libraries/lepton/src/Parser.cpp
libraries/lepton/src/Parser.cpp
+1
-1
No files found.
libraries/lepton/src/Parser.cpp
View file @
3ea53872
...
...
@@ -113,7 +113,7 @@ ParseToken Parser::getNextToken(string expression, int start) {
c
=
expression
[
pos
];
if
(
c
==
'('
)
return
ParseToken
(
expression
.
substr
(
start
,
pos
-
start
+
1
),
ParseToken
::
Function
);
if
(
Operators
.
find
(
c
)
!=
string
::
npos
||
c
==
','
||
c
==
')'
)
if
(
Operators
.
find
(
c
)
!=
string
::
npos
||
c
==
','
||
c
==
')'
||
c
==
' '
)
return
ParseToken
(
expression
.
substr
(
start
,
pos
-
start
),
ParseToken
::
Variable
);
}
return
ParseToken
(
expression
.
substr
(
start
,
string
::
npos
),
ParseToken
::
Variable
);
...
...
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