Zulip Chat Archive

Stream: lean4

Topic: Non-builtin parser aliases


Mario Carneiro (Jun 10 2023 at 13:45):

Is it possible to declare a parser alias like withoutPosition(p) in user code? I get an error aliases can only be registered during initialization which I think means I need to use builtin_initialize, but if I do then it appears to have no effect.

Sebastian Ullrich (Jun 10 2023 at 13:47):

I don't think anyone tried or even thought about that yet. initialize doesn't work?

Mario Carneiro (Jun 10 2023 at 13:47):

it doesn't

Mario Carneiro (Jun 10 2023 at 13:48):

also, apparently there is both IO.initializing and initializing and they aren't the same thing

Mario Carneiro (Jun 10 2023 at 13:49):

haha lol if I just delete the error message then it works


Last updated: Dec 20 2023 at 11:08 UTC