luhang / naca

Automatically exported from code.google.com/p/naca
0 stars 0 forks source link

Multiple index support in INDEX BY clause #1

Open GoogleCodeExporter opened 9 years ago

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

Parse a cobol array with an INDEXED BY clause containing multiple index
declaration, for example :
01 TAB OCCURS 10 INDEXED BY IDX1 IDX2 IDX3.

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

The parsing step generate an error and the result xml tree is wrong because
all currently opened items are closed.
Either skip following identifiers and save just one identifier or save all
of the identifiers and add them in the generated tree.

What version of the product are you using? On what operating system?
NacaTrans 1.2.0.1 on Ubuntu Jaunty

I am only using the lexer and parser for now, on Cobol clause copy. Thus, I
don't know all the impacts of adding multiple indexes on the generated tree(s).

Thanks a lot for having released the naca project in Open Source.

Original issue reported on code.google.com by frederic...@gmail.com on 21 Oct 2009 at 5:39

GoogleCodeExporter commented 9 years ago
Here is a diff file of changes I made in CWorkingEntry.java

Original comment by frederic...@gmail.com on 21 Oct 2009 at 5:49

Attachments: