All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Seefeld <stefan-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org>
To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Formal grammar for DTS
Date: Sat, 28 Feb 2015 10:22:55 -0500	[thread overview]
Message-ID: <54F1DD4F.3080304@codesourcery.com> (raw)

Hello,

I would like to write a tool / library that allows me to
(programmatically) edit .dts files, with the ability to regenerate the
source files, preserving the original formatting (including comments and
other non-semantic content).

To that end I need a formal definition of the DTS grammar. While I have
found the dtc tool, all its source files (in particular the dtc-lexer.l
and dtc-parser.y files) are released under GPL, so it isn't entirely
clear whether I may use the grammar encoded in those and transcribe that
into my own (I'm writing my tool in Java, most likely using the JavaCC
parser generator tool).

So, is there another place where the grammar of Device Tree source files
is formally defined in ways that allows tools developers to use that ?
Any help and advice would be highly appreciated.

Thanks,

		Stefan


-- 
Stefan Seefeld
CodeSourcery / Mentor Embedded
stefan-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe devicetree-spec" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2015-02-28 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-28 15:22 Stefan Seefeld [this message]
     [not found] ` <54F1DD4F.3080304-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org>
2015-03-02  4:54   ` Formal grammar for DTS David Gibson
     [not found]     ` <20150302045403.GE29409-RXTfZT5YzpxwFLYp8hBm2A@public.gmane.org>
2015-03-02 15:42       ` Stefan Seefeld
     [not found]         ` <54F484D4.8080501-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org>
2015-03-03 12:22           ` Ian Campbell

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

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

  git send-email \
    --in-reply-to=54F1DD4F.3080304@codesourcery.com \
    --to=stefan-qd8j1lwmmjjtcj0u4l0sbw@public.gmane.org \
    --cc=devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.