Project

General

Profile

Actions

Bug #5722

closed

Check for problems with sanitized RecordToken labels

Added by Derik Barseghian almost 12 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
general
Target version:
Start date:
10/01/2012
Due date:
% Done:

90%

Estimated time:
Bugzilla-Id:
5722

Description

Filing a bug so this doesn't get forgotten - I said I'd try to look into this ptII change, r64639:
-------
Sanitize RecordToken or OrderedRecordToken labels, which means that characters like spaces will be converted to underscores. This is necessary so that the string representations of RecordTokens can be reparsed by the expression language. The alternative of modifying the expression language to allow strings as labels causes conflicts in the parser.
-------

I worry this change is going to cause problems...anything that expects (e.g. checks equivalence) the data in a label to come out of a RecordToken as it went in will seemingly have a problem. It also sounds like a lossy translation.


Files

recordLabelSpaces.kar (6.39 KB) recordLabelSpaces.kar ben leinfelder, 12/05/2012 02:08 PM
PtParser.jjt.patch (689 Bytes) PtParser.jjt.patch Derik Barseghian, 12/20/2012 07:01 PM
recordAssemblerTrunkTest.kar (7.26 KB) recordAssemblerTrunkTest.kar Derik Barseghian, 12/20/2012 07:07 PM
expressionOrderedRecordTokenTest.kar (7.41 KB) expressionOrderedRecordTokenTest.kar Derik Barseghian, 12/20/2012 07:09 PM
Actions

Also available in: Atom PDF