stl: consider FLOAT_token as an alias of ID_token
This commit is contained in:
parent
0d43396116
commit
15518d5a0d
@ -73,8 +73,8 @@ typedef enum
|
|||||||
ENDLOOP_token,
|
ENDLOOP_token,
|
||||||
ENDSOLID_token,
|
ENDSOLID_token,
|
||||||
FACET_token,
|
FACET_token,
|
||||||
FLOAT_token,
|
|
||||||
ID_token,
|
ID_token,
|
||||||
|
FLOAT_token = ID_token,
|
||||||
LOOP_token,
|
LOOP_token,
|
||||||
NORMAL_token,
|
NORMAL_token,
|
||||||
OUTER_token,
|
OUTER_token,
|
||||||
@ -144,13 +144,6 @@ static gmio_stla_token_t parsing_find_token(const gmio_ascii_string_buffer_t* st
|
|||||||
if (word_len == 0)
|
if (word_len == 0)
|
||||||
return empty_token;
|
return empty_token;
|
||||||
|
|
||||||
/* Try to guess if it's a float */
|
|
||||||
if ((word[0] == '+' || word[0] == '-' || isdigit(word[0]))
|
|
||||||
&& isdigit(word[word_len - 1]))
|
|
||||||
{
|
|
||||||
return FLOAT_token;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Try to find non "endXxx" token */
|
/* Try to find non "endXxx" token */
|
||||||
if (word_len >= 4) {
|
if (word_len >= 4) {
|
||||||
switch (word[0]) {
|
switch (word[0]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user