From 786adec5370014b8e1b9fcb6b7c68a26fe53b234 Mon Sep 17 00:00:00 2001 From: Erez Sh Date: Sat, 28 Aug 2021 19:54:01 +0100 Subject: [PATCH] Docs: Tiny fix in docstring in visitors.py --- lark/visitors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lark/visitors.py b/lark/visitors.py index e2f8b53..d45bb19 100644 --- a/lark/visitors.py +++ b/lark/visitors.py @@ -153,10 +153,10 @@ def merge_transformers(base_transformer=None, **transformers_to_merge): """Merge a collection of transformers into the base_transformer, each into its own 'namespace'. When called, it will collect the methods from each transformer, and assign them to base_transformer, - with their name prefixed with the given keyword, as ``prefix__methodname`. + with their name prefixed with the given keyword, as ``prefix__methodname``. This function is especially useful for processing grammars that import other grammars, - thereby creating some of their rules in a 'namespace'. (i.e with a consitent name prefix) + thereby creating some of their rules in a 'namespace'. (i.e with a consistent name prefix). In this case, the key for the transformer should match the name of the imported grammar. Parameters: