Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#49] Slight syntactic difference between ml-lex and ml-ulex in backward compatibility mode.

Date:
2009-12-08 23:40
Priority:
3
State:
Closed
Submitted by:
Jon Riehl (jriehl)
Assigned to:
Aaron Turon (adrassi)
Machine Architecture:
None
Operating System:
None
Component:
ML-Ulex
Resolution:
None
Severity:
Minor
OS Version:
SML/NJ Version:
110.71
Keywords:
URL:
Transcript (of reproduction):
$ ml-lex test.lex Number of states = 14 Number of distinct rows = 5 Approx. memory size of trans. table = 645 bytes $ ml-ulex --ml-lex-mode test.lex [ml-ulex: parsing] 14: syntax error: deleting BAR LB RBD [ml-ulex: DFA gen] 12 states in full DFA [ml-ulex: SML gen]
Source (for reproduction):
(See attached file.)
Summary:
Slight syntactic difference between ml-lex and ml-ulex in backward compatibility mode.

Detailed description
The ml-ulex tool appears to not correctly recognize the character class "[-]" as being just the hyphen. The transcript shows running ml-lex and ml-ulex on the attached input (both appear to generate a SML file, but I have not checked to see if they work).

The original submitter (Roger Price, via smlnj-list) noted a work around for this problem was to just remove the brackets for the hyphen (changing "({alpha}|[-])" to "({alpha}|-)".

Comments:

Message  ↓
Date: 2011-03-31 16:23
Sender: John Reppy

Fixe in r174 of ml-lpt

Attached Files:

Attachments:
Size Name Date By Download
1 KiBtest.lex2009-12-08 23:40jriehltest.lex

Changes

Field Old Value Date By
status_idOpen2011-03-31 16:23jhr
close_date2011-03-31 16:232011-03-31 16:23jhr
assigned_tonone2011-03-22 13:39jhr
File Added3: test.lex2009-12-08 23:40jriehl