emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Giovanni Giorgi <jj@gioorgi.com>
To: Chris Malone <chris.m.malone@gmail.com>
Cc: Emacs orgmode <emacs-orgmode@gnu.org>
Subject: Re: [ANN] Org Mode parser v0.0.1 for NodeJs
Date: Wed, 05 Oct 2011 17:56:33 +0200	[thread overview]
Message-ID: <da386becf717241cee2bd819fa9cfce1@mail.webfaction.com> (raw)
In-Reply-To: <B520B08E-9027-4A27-80D4-4D7F18751435@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2299 bytes --]

  

Hi, 

 you can find a simple example
here
https://github.com/daitangio/org-mode-parser [4] 

with the source
code too. 

Anyway, the simpler way is to install the package (via npm)
and use the makelist(...) function to read and parse in an asyncronous
way the org-nodes: 

var
orgParser=require('org-mode-parser');
orgParser.makelist("README.org",
function (nodelist){
 // Here nodelist is a list of Orgnode objects
(ref:putyourcode)
 console.dir(nodelist);
});

I have just pushed the
revision 0.0.2.

Take a look here for unit testing
example

https://github.com/daitangio/org-mode-parser/blob/master/test/parserTest.js
[5]

On Wed, 5 Oct 2011 08:21:09 -0700, Chris Malone wrote: 

> Hi Gio,

> Perhaps it is my ignorance of how this all works, but do you have a
small example of how/why one would use this? As is obvious from my
question, I'm not familiar with nodejs. 
> Chris
> 
> On Oct 4, 2011, at
6:43 PM, Marcelo de Moraes Serpa wrote: 
> 
>>
This.is.simply.awesome!
>> 
>> I was procrastinating on this as well.
There's one for ruby as well which I've been playing with, this could
give me some inspiration to contribute back. 
>> 
>> Keep up the great
work,
>> 
>> - Marcelo.
>> 
>> On Tue, Oct 4, 2011 at 4:34 PM, Giovanni
Giorgi wrote:
>> 
>>> Hi all,
>>> I have just published my org-mode
parser for the node-js javascript based server: 
>>> 
>>>
http://gioorgi.com/org-mode-parser/ [1] 
>>> 
>>> It is a Javascript
parser for the Emacs Org-mode file format. 
>>> 
>>> I use org-mode as a
database for some programs (like games) where I need to mix meta
information to a bunch of long textual data. 
>>> 
>>> I wrote it
because I was unable to find an implementation for my needs. 
>>> 
>>> I
like too much org-mode to let nodejs without a parser, and as expected
the simple org-mode format was easy to parse.
>>> I started from the
Charles Cave's OrgNode python parser, but I need to modify it a lot
because of JavaScript different nature. 
>>> 
>>> Please feel free to
give me your feedback 
>>> 
>>> ---
>>> Gio's Blog http://gioorgi.com
[2]
 

Links:
------
[1] http://gioorgi.com/org-mode-parser/
[2]
http://gioorgi.com/
[3] mailto:jj@gioorgi.com
[4]
https://github.com/daitangio/org-mode-parser
[5]
https://github.com/daitangio/org-mode-parser/blob/master/test/parserTest.js

[-- Attachment #2: Type: text/html, Size: 3217 bytes --]

  reply	other threads:[~2011-10-05 15:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-04 21:34 [ANN] Org Mode parser v0.0.1 for NodeJs Giovanni Giorgi
2011-10-05  1:43 ` Marcelo de Moraes Serpa
2011-10-05 15:21   ` Chris Malone
2011-10-05 15:56     ` Giovanni Giorgi [this message]
2011-10-06 14:57 ` Eric Schulte
2011-10-29 10:46   ` Bastien
2011-12-11 13:41 ` Bastien
2011-12-11 18:04   ` Eric Schulte
2011-12-11 23:21     ` Bastien
2011-12-12 21:19       ` Giovanni Giorgi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da386becf717241cee2bd819fa9cfce1@mail.webfaction.com \
    --to=jj@gioorgi.com \
    --cc=chris.m.malone@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).