From 65dc1f2196b46dbd527d49da113515bea825416d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 26 Jun 2018 15:52:38 -0700 Subject: Cleaning up metaprogramming a bit and fixing/adding test for recursion control flow. --- lib/os.nom | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/os.nom b/lib/os.nom index 8a27168..25b47b6 100644 --- a/lib/os.nom +++ b/lib/os.nom @@ -29,3 +29,8 @@ action [write to file %filename %text, to file %filename write %text] file:write(\%text) file:close() +action [line number of %pos in %str] + =lua "files.get_line_number(\%str, \%pos)" + +action [line %line_num in %str] + =lua "files.get_line(\%str, \%line_num)" -- cgit v1.2.3