Fork me on GitHub
#portkey
<
2018-06-13
>
viesti14:06:12

rabbit hole

cgrand14:06:12

it’s bizarre: when the closure is erialized, instaparse has not been invoked yet.

cgrand14:06:24

so we are passing the grammar as a string

viesti14:06:29

maybe many holes

cgrand14:06:38

if strings were corrupted we would have noticed

viesti14:06:47

don't know if they lead to same galaxy though

cgrand14:06:10

so how come this difference is?

cgrand14:06:40

is an instaparse var mishandled?

cgrand15:06:46

with portkey Yoda messing is

cgrand15:06:23

parsing the grammar (I repeat: parsing the grammar, not parsing with the parser generated from the grammar)

cgrand15:06:55

should yield ([:rule [:nt "S"] [:alt [:cat [:star [:nt "AB"]]]]] [:rule [:nt "AB"] [:alt [:cat [:nt "A"] [:nt "B"]]]] [:rule [:nt "A"] [:alt [:cat [:plus [:string "'a'"]]]]] [:rule [:nt "B"] [:alt [:cat [:plus [:string "'b'"]]]]])

cgrand15:06:09

but yields ([:rule [:alt [:cat [:plus [:string "'b'"]]]] [:nt "B"]] [:rule [:alt [:cat [:plus [:string "'a'"]]]] [:nt "A"]] [:rule [:alt [:cat [:nt "B"] [:nt "A"]]] [:nt "AB"]] [:rule [:alt [:cat [:star [:nt "AB"]]]] [:nt "S"]])

viesti16:06:38

portkey seems to establish a new order

cgrand17:06:44

Actually I think it’s carbonite.