Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0025171Community[OCCT] OCCT:Data Exchangepublic2014-08-20 14:162017-07-27 09:33
Assigned Togka 
PlatformWindowsOSVC++ 2010OS Version64 bit
Product Version[OCCT] 6.6.0 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0025171: STEP Lexer - the strings with quote sign inside can't be properly lexed
DescriptionIn my case, I had a file generated by PRO/ENGINEER with some french words used as strings. Example: DESCRIPTIVE_REPRESENTATION_ITEM('MATIERE', 'Fil d'acier');
The current STEP lexer can't properly handle this situation and the application refuses to parse a file at all.
Steps To ReproduceImport the attached infected as1 model
TagsNo tags attached.
Test case number
Attached Files? file icon as1-oc-214_parse_error.stp (441,968 bytes) 2014-08-20 14:16
c file icon lex.step.c (50,704 bytes) 2014-08-20 14:25

- Relationships

-  Notes
drazmyslovich (developer)
2014-08-20 14:25

Unfortunately, here I can't provide a straight-forward fix to the problem. As a temporary fix on my side I use the modified lex.step.c file, which normally generated by flex from step.lex file.
Since, I'm not that familiar with flex syntax, I would prefer somebody else to fix the original source file. While the modified lex.step.c I've attached to this ticket (all modification are marked with 0025171 string - 5 modifications in total)
drazmyslovich (developer)
2014-08-20 14:26

Please, check the provided modifications and fix the original source file.
akz (developer)
2015-01-29 13:42

The problem is that the regular expression for the text arguments (described in step.lex) does not pass the single apostrophe - ' in the text.

Current regexp for the text arguments:

- Issue History
Date Modified Username Field Change
2014-08-20 14:16 drazmyslovich New Issue
2014-08-20 14:16 drazmyslovich Assigned To => gka
2014-08-20 14:16 drazmyslovich File Added: as1-oc-214_parse_error.stp
2014-08-20 14:25 drazmyslovich Note Added: 0030935
2014-08-20 14:25 drazmyslovich File Added: lex.step.c
2014-08-20 14:26 drazmyslovich Note Added: 0030936
2014-08-20 14:26 drazmyslovich Status new => assigned
2014-08-20 14:27 drazmyslovich Description Updated View Revisions
2014-09-26 16:21 abv Target Version 6.8.0 => 7.1.0
2015-01-29 13:42 akz Note Added: 0036813
2016-10-26 12:14 gka Target Version 7.1.0 => 7.2.0
2017-07-27 09:33 abv Target Version 7.2.0 => 7.4.0*

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker