Anonymous | Login | 2019-12-12 09:58 MSK | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0025171 | Community | [OCCT] OCCT:Data Exchange | public | 2014-08-20 14:16 | 2019-07-10 21:58 | ||||||||
Reporter | drazmyslovich | ||||||||||||
Assigned To | gka | ||||||||||||
Priority | normal | Severity | major | ||||||||||
Status | assigned | Resolution | open | ||||||||||
Platform | Windows | OS | VC++ 2010 | OS Version | 64 bit | ||||||||
Product Version | [OCCT] 6.6.0 | ||||||||||||
Target Version | [OCCT] 7.5.0* | Fixed in Version | |||||||||||
Summary | 0025171: STEP Lexer - the strings with quote sign inside can't be properly lexed | ||||||||||||
Description | In 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 Reproduce | Import the attached infected as1 model | ||||||||||||
Tags | No tags attached. | ||||||||||||
Test case number | |||||||||||||
Attached Files | ![]() ![]() | ||||||||||||
![]() |
|
(0030935) 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) |
(0030936) drazmyslovich (developer) 2014-08-20 14:26 |
Please, check the provided modifications and fix the original source file. |
(0036813) 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: [\']([\n]|[\000\011-\046\050-\176\201-\237\240-\777]|[\047][\047])*[\'] |
![]() |
|||
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 |
2019-07-10 21:58 | abv | Target Version | 7.4.0 => 7.5.0* |
Copyright © 2000 - 2019 MantisBT Team |