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

One-line assignments are not parsed as definitions, but chunks #18

Open
shamansir opened this issue Dec 6, 2017 · 0 comments
Open

One-line assignments are not parsed as definitions, but chunks #18

shamansir opened this issue Dec 6, 2017 · 0 comments

Comments

@shamansir
Copy link
Owner

Not parsed:

type FF = T1 | T2 Int String | T3 String | T4 { a: Int, b: String }

type FFI = TI1 | TI2 Int | TI3 String | TI4 FFI

a = T1

b = T2 2 "a"

c = T3 "f"

a

b

c

d = TI4 (TI3 "c")

d

e = T4 { a = 3, b = "x" }

e

toString d

Parsed

type FF = T1 | T2 Int String | T3 String | T4 { a: Int, b: String }

type FFI = TI1 | TI2 Int | TI3 String | TI4 FFI

a =
    T1

b =
    T2 2 "a"

c =
    T3 "f"

a

b

c

d =
    TI4 (TI3 "c")

d

e =
    T4 { a = 3, b = "x" }

e

toString d
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