{"id":420,"date":"2007-10-16T16:16:00","date_gmt":"2007-10-16T16:16:00","guid":{"rendered":"http:\/\/sdi.thoughtstorms.info\/?p=420"},"modified":"2007-10-16T16:16:00","modified_gmt":"2007-10-16T16:16:00","slug":"420","status":"publish","type":"post","link":"https:\/\/blog.thoughtstorms.info\/?p=420","title":{"rendered":""},"content":{"rendered":"<p>Good weekend for GeekWeaver development &#8230; you can now pass arguments to functions that are more or less table-shaped &#8211; like this :<\/p>\n<pre><br \/>:f Fruits<br \/>  apples,, oranges,, pears<br \/>  grapefruit,, passion-fruit,, grapes<br \/>  bananas,, lychees,, mangos  <br \/><\/pre>\n<\/p>\n<p>It&#8217;s not public yet, but it will be available in the next installer.<\/p>\n<p>Also, although GeekWeaver is designed to be written in an outliner, I&#8217;m close to a plain-text mode which will look something like the above. <\/p>\n<p>But I have a problem which I&#8217;m still not sure of how to solve. GW has to preserve literal text. So using spaces for indentation like Python is not so easy.<\/p>\n<pre><br \/>abc<br \/>  xyz<br \/><\/pre>\n<\/p>\n<p>could mean either a node &#8220;abc&#8221; with a child &#8220;xyz&#8221; or two nodes at the same depth : &#8220;abc&#8221; and &#8221;  xyz&#8221;. How can we tell the two apart?<\/p>\n<p>Currently my plain text parser works with code that looks like this :<\/p>\n<pre><br \/>* abc<br \/>** xyz<br \/><\/pre>\n<\/p>\n<p>Which keeps the continuity with wiki-markup and disambiguates from<\/p>\n<pre><br \/>* abc<br \/>*   xyz<br \/><\/pre>\n<\/p>\n<p>But it&#8217;s pretty ugly if you really were going to do any serious programming with it.<\/p>\n<p>Suggestions welcome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Good weekend for GeekWeaver development &#8230; you can now pass arguments to functions that are more or less table-shaped &#8211; like this : :f Fruits apples,, oranges,, pears grapefruit,, passion-fruit,, grapes bananas,, lychees,, mangos It&#8217;s not public yet, but it will be available in the next installer. Also, although GeekWeaver is designed to be written [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[173,319],"class_list":["post-420","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-geekweaver","tag-opml"],"_links":{"self":[{"href":"https:\/\/blog.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/posts\/420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=420"}],"version-history":[{"count":0,"href":"https:\/\/blog.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/posts\/420\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}