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

assertion failure in safePrinter #7

Open
treinen opened this issue Jan 24, 2019 · 0 comments
Open

assertion failure in safePrinter #7

treinen opened this issue Jan 24, 2019 · 0 comments
Assignees

Comments

@treinen
Copy link
Contributor

treinen commented Jan 24, 2019

when I compile the following program

let filename = Sys.argv.(1)
let ast = Morsmall.parse_file filename
let _ = Morsmall.pp_print_safe Format.std_formatter ast

on the file consisting of one line

{ echo "hello world";}

then I get

{ echo Fatal error: exception File "src/safePrinter.ml", line 37, characters 5-11: Assertion failed

It works when I remove the quotes in the input.

@Niols Niols self-assigned this Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants