Re: org mode parser

2012-12-15 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes:

Hi Joe,

 https://bitbucket.org/joebo/pico-org/src

 Thanks for sharing! Thorsten will be delighted too ;-)

Indead, delighted and surprised, I just talked about an Org-mode parser
with Alex yesterday and recently had a look at the official Org-mode
parser in Emacs Lisp (org-element.el) that is almost 5000 lines of code
in contrast to your 50 lines ;)

I think the combination of Org-mode and PicoLisp is quite interesting.

-- 
cheers,
Thorsten

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: org mode parser

2012-12-15 Thread Joe Bogner
Alex - thank you as always for the code suggestions!

Thorsten - I just added PROPERTIES parsing and preliminary tag parsing and
now we're at 90 lines. I think it will take a bit more to get to 5000 ;)




On Sat, Dec 15, 2012 at 9:01 AM, Thorsten Jolitz tjol...@googlemail.comwrote:

 Alexander Burger a...@software-lab.de writes:

 Hi Joe,

  https://bitbucket.org/joebo/pico-org/src
 
  Thanks for sharing! Thorsten will be delighted too ;-)

 Indead, delighted and surprised, I just talked about an Org-mode parser
 with Alex yesterday and recently had a look at the official Org-mode
 parser in Emacs Lisp (org-element.el) that is almost 5000 lines of code
 in contrast to your 50 lines ;)

 I think the combination of Org-mode and PicoLisp is quite interesting.

 --
 cheers,
 Thorsten

 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



org mode parser

2012-12-14 Thread Joe Bogner
Hello all,

I've written a tiny org-mode parser and hooked it up with my mustache
implementation to create a simple web page that dumps out the org
structure. I'm not sure where I'm going to go next but figured I'd share it
since I enjoy reading other's code as well.

I'm amazed at what can be done in 42 lines of picolisp :-) (looking at
org.l)

https://bitbucket.org/joebo/pico-org/src

I have it running with a random org mode file I found at
http://csilo.com/org/

By the way - I like the new ref page look  feel (
http://software-lab.de/doc/ref.html). The sort alphabetically is also handy.

Joe