I'm using python lark to parse a domain specific language and I havn't yet made the grammar file of the quality required to use lalr parsing. The parsing of a simple file is therefore taking over 3 seconds. Is there a simple way to serialise the parsed lark file, so that I can store it in a file and reopen it without having to reparse the text.
Is there anything better than using pickle?