mykovalenko / legstar-cob2xsd

Automatically exported from code.google.com/p/legstar-cob2xsd
Other
0 stars 0 forks source link

Data items named FORMAT are not parsed correctly #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. A COBOL data item such as : 09 Format PIC X(32).
2. Gives error message: missing DATE_PATTERN at 'PIC'

What is the expected output? What do you see instead?

Format is a valid data item name. The lexer assumes FORMAT is always associated 
with a previous DATE keyword (as in DATE FORMAT) which is wrong.

Original issue reported on code.google.com by fady.mou...@gmail.com on 10 Nov 2010 at 1:16

GoogleCodeExporter commented 9 years ago
What are valid values for DATE_PATTERN?
I tried to "translate" a COBOL to XSD, and failed with error: "Parsing failed. 
1 syntax errors. Last error was line 23:39 unexpected token ''yyyy-MM-dd 
HH:mm:ss,fff'' expecting DATE_PATTERN".

Original comment by phamdngu...@gmail.com on 7 Feb 2011 at 6:45

GoogleCodeExporter commented 9 years ago
DATE_PATTERNs are not supported at the moment. As you noticed, the lexer 
doesn't even recognize them. Please open up another issue if you would like 
them to be supported in the future.

thanks 

Original comment by fady.mou...@gmail.com on 7 Feb 2011 at 8:48

GoogleCodeExporter commented 9 years ago
I'll handle this one.

Original comment by fady.mou...@gmail.com on 23 Jul 2011 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by fady.mou...@gmail.com on 25 Jul 2011 at 9:45