# # patch "ChangeLog" # from [c2ec20ee83e66b957fc33eb389f2a27d1796647e] # to [6c22470118e05866034fe7125f5fd501a97d83bd] # # patch "monotone.texi" # from [5318f542106b284227c9be027f3b66fdde71931d] # to [f6e0d0aba6a6e438cc906c64c1f0e8b69a2d2f83] # ======================================================================== --- ChangeLog c2ec20ee83e66b957fc33eb389f2a27d1796647e +++ ChangeLog 6c22470118e05866034fe7125f5fd501a97d83bd @@ -1,5 +1,10 @@ 2005-11-10 Timothy Brownawell + * monotone.texi: document parse_basicio in the + "Additional Lua Functions" section + +2005-11-10 Timothy Brownawell + * testsuite.at: Several MINHOOKS_* macros that use the standard hooks and only load predefined hooks about passphrase and rng. * tests/t_netsync_permissions, tests/t_netsync_read_permissions: use ======================================================================== --- monotone.texi 5318f542106b284227c9be027f3b66fdde71931d +++ monotone.texi f6e0d0aba6a6e438cc906c64c1f0e8b69a2d2f83 @@ -6374,6 +6374,37 @@ process. The exit code is meaningful only if the result value is 0. address@hidden parse_basicio(@var{data}) + +Parse the string @var{data}, which should be in basic_io format. It returns nil +if it can't parse the string; otherwise it returns a table. This will be a list +of all statements, with each entry being a table having a "name" element that is +the symbol beginning the statement and a "values" element that is a list of all +the arguments. + +For example, given this as input: + address@hidden address@hidden +thingy "foo" "bar" +thingy "baz" +spork +frob "oops" address@hidden group address@hidden smallexample + +The output table will be: address@hidden address@hidden address@hidden + 1 = @{ name = "thingy", args = @{ 1 = "foo", 2 = "bar" @} @}, + 2 = @{ name = "thingy", args = @{ 1 = "baz" @} @}, + 3 = @{ name = "spork", args = @{ @} @}, + 4 = @{ name = "frob", args = @{ 1 = "oops" @} @} address@hidden address@hidden group address@hidden smallexample + @end ftable