Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.prorefactor.refactor.RefactorException: unexpected token SEEK #2

Open
ccleaud opened this issue Dec 15, 2015 · 2 comments
Open

Comments

@ccleaud
Copy link

ccleaud commented Dec 15, 2015

Hello,

I encounter an exception while ProParsing file with build 1128.
Can you fix this please?
Thanks a lot.

Kind regards,
Cyril CLEAUD


DEFINE VARIABLE gcLine                AS INTEGER NO-UNDO.
DEFINE VARIABLE gcSomething           AS INTEGER NO-UNDO.

DEFINE STREAM myStream.

INPUT STREAM myStream FROM VALUE("a-file.txt").
REPEAT:
    IMPORT STREAM myStream UNFORMATTED gcLine.
    gcSomething = SEEK(STREAM-HANDLE STREAM myStream:HANDLE).   /* <-- this line causes exception in proparse */
END.
INPUT STREAM myStream CLOSE.

RETURN "".
ccleaud added a commit to ccleaud/proparse that referenced this issue Jan 7, 2016
- corrected oehive#1
- corrected oehive#2
Inspired from @jakejustus's work, thanks to him.
@ccleaud
Copy link
Author

ccleaud commented Jan 7, 2016

Corrected in commit b3e5b6f.
Thanks to @jakejustus's work.

@ccleaud
Copy link
Author

ccleaud commented Jan 10, 2016

Please manually merge those commits (warning, I've changed pathes preventing me to create a pull request):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant