You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating two or more Mark.tree blocks within a single document using Mark.manyOf , then the first tree is used for both when parsing the emu file. For example if you have two mark blocks List and Tree, with the block name |> List and |> Tree respectively, then you can only make blocks using those two names as confirmed by the compiler. However, the first item in your manyOf is what is used when the document is actually parsed. For example if you are using Mark.manyOf [ list, tree ] then all |> Tree elements within a document are then are parsed as List elements. The reverse then happend if you do Mark.manyOf [ tree, list ]
The text was updated successfully, but these errors were encountered:
I assume this repo is no longer being worked on but I can confirm that I am facing the same issue - when trying to get multiple blocks parsed, whichever tree block is mentioned first will overwrite any others.
When creating two or more Mark.tree blocks within a single document using Mark.manyOf , then the first tree is used for both when parsing the emu file. For example if you have two mark blocks
List
andTree
, with the block name|> List
and|> Tree
respectively, then you can only make blocks using those two names as confirmed by the compiler. However, the first item in yourmanyOf
is what is used when the document is actually parsed. For example if you are usingMark.manyOf [ list, tree ]
then all|> Tree
elements within a document are then are parsed asList
elements. The reverse then happend if you doMark.manyOf [ tree, list ]
The text was updated successfully, but these errors were encountered: