We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the carriage return in this LAP file throws off the scanner.
262 constant define-key 263 varref map 264 constant "^M" 267 constant il-electric-return 270 call 3 271 discard
This seems to fix that but probably isn't so DOS friendly:
diff --git a/lapdecompile/main.py b/lapdecompile/main.py index de0cd58..a4c029a 100755 --- a/lapdecompile/main.py +++ b/lapdecompile/main.py @@ -54,7 +54,7 @@ def control_flow(name, instructions, show_assembly, write_cfg): def deparse(path, outstream, show_assembly, write_cfg, show_grammar, show_tree): # Scan... - with open(path, "r") as fp: + with open(path, "r", newline="\n") as fp: scanner = LapScanner(fp, show_assembly=show_assembly) pass
a similar change would go at the very bottom of scanner.py
scanner.py
The text was updated successfully, but these errors were encountered:
what's the best way for me to contribute little things like that? Fork, create branch with the patch, push, and then PR on your repo?
Sorry, something went wrong.
Yes - the standard process is is
As for the other problems, I'll write a detailed answer of what's up later.
No branches or pull requests
the carriage return in this LAP file throws off the scanner.
This seems to fix that but probably isn't so DOS friendly:
a similar change would go at the very bottom of
scanner.py
The text was updated successfully, but these errors were encountered: