From 8ffce48c2435589cc2093796d8e42b248c957061 Mon Sep 17 00:00:00 2001 From: Rogdham Date: Wed, 20 Feb 2019 11:39:32 +0100 Subject: [PATCH] Examples: update lark.lark Include relative imports and rule rewrite --- examples/lark.lark | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/lark.lark b/examples/lark.lark index e561dbe..915cf2e 100644 --- a/examples/lark.lark +++ b/examples/lark.lark @@ -10,10 +10,10 @@ token: TOKEN priority? ":" expansions _NL priority: "." NUMBER statement: "%ignore" expansions _NL -> ignore - | "%import" import_args ["->" TOKEN] _NL -> import + | "%import" import_args ["->" name] _NL -> import | "%declare" name+ -> declare -import_args: name ("." name)* +import_args: "."? name ("." name)* ?expansions: alias (_VBAR alias)*