All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org>
To: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org
Subject: [PATCH 0/8] Implement a new DTS Source Language
Date: Tue, 23 Sep 2008 14:04:04 -0500	[thread overview]
Message-ID: <1222196652-13811-1-git-send-email-jdl@jdl.com> (raw)

This series of patches enhances the DTS source language to
support a fullly interpreted language for generating nodes
and properties.  It is backward compatible with V1 sources.

The main features implemented by this patch set support
function definitions, 'if', 'for', 'return' and assignment
statements.  Local variables, global constants and
almost complete C-like expressions are also supported.

Enhancements to the source position and error/warning
reporting now support source column positions too.

Jon Loeliger (8):
  Remove support for the legacy DTS source file format.
  Add conditionalized debug() print macro.
  Enhance source position implementation.
  Add header files for new Internal Representation form.
  Add most of the new IR implementation files.
  Add the main IR evaluation implementation
  Introduce new DTS language.
  Add documentation for the new DTS language.

 Documentation/manual.txt  |  500 ++++++++++++++--
 Makefile                  |    2 +-
 Makefile.dtc              |   18 +-
 dtc-lexer.l               |  299 +++++++---
 dtc-parser.y              |  726 +++++++++++++++++------
 dtc.c                     |    7 +-
 dtc.h                     |    9 +
 ir.c                      |  197 ++++++
 ir.h                      |  161 +++++
 ir_builtin.c              |  178 ++++++
 ir_builtin.h              |   41 ++
 ir_dump.c                 |  220 +++++++
 ir_emit.c                 |  492 +++++++++++++++
 ir_eval.c                 | 1504 +++++++++++++++++++++++++++++++++++++++++++++
 ir_scope.c                |  319 ++++++++++
 ir_scope.h                |  114 ++++
 livetree.c                |   16 +
 nv.c                      |  108 ++++
 nv.h                      |   34 +
 srcpos.c                  |  136 ++++-
 srcpos.h                  |   25 +-
 tests/base01.dts          |   24 +-
 tests/empty.dts           |    2 +
 tests/escapes.dts         |    2 +
 tests/label01.dts         |   38 +-
 tests/references_dts0.dts |   12 +-
 tests/run_tests.sh        |   27 +-
 tests/test01.dts          |   38 +-
 tests/test_tree1_dts0.dts |   18 +-
 treesource.c              |    3 +
 30 files changed, 4872 insertions(+), 398 deletions(-)
 create mode 100644 ir.c
 create mode 100644 ir.h
 create mode 100644 ir_builtin.c
 create mode 100644 ir_builtin.h
 create mode 100644 ir_dump.c
 create mode 100644 ir_emit.c
 create mode 100644 ir_eval.c
 create mode 100644 ir_scope.c
 create mode 100644 ir_scope.h
 create mode 100644 nv.c
 create mode 100644 nv.h

             reply	other threads:[~2008-09-23 19:04 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-23 19:04 Jon Loeliger [this message]
     [not found] ` <1222196652-13811-1-git-send-email-jdl-CYoMK+44s/E@public.gmane.org>
2008-09-23 19:04   ` [PATCH 1/8] Remove support for the legacy DTS source file format Jon Loeliger
     [not found]     ` <1222196652-13811-2-git-send-email-jdl-CYoMK+44s/E@public.gmane.org>
2008-09-23 19:04       ` [PATCH 2/8] Add conditionalized debug() print macro Jon Loeliger
     [not found]         ` <1222196652-13811-3-git-send-email-jdl-CYoMK+44s/E@public.gmane.org>
2008-09-23 19:04           ` [PATCH 3/8] Enhance source position implementation Jon Loeliger
     [not found]             ` <1222196652-13811-4-git-send-email-jdl-CYoMK+44s/E@public.gmane.org>
2008-09-23 19:04               ` [PATCH 4/8] Add header files for new Internal Representation form Jon Loeliger
     [not found]                 ` <1222196652-13811-5-git-send-email-jdl-CYoMK+44s/E@public.gmane.org>
2008-09-23 19:04                   ` [PATCH 5/8] Add most of the new IR implementation files Jon Loeliger
     [not found]                     ` <1222196652-13811-6-git-send-email-jdl-CYoMK+44s/E@public.gmane.org>
2008-09-23 19:04                       ` [PATCH 6/8] Add the main IR evaluation implementation Jon Loeliger
     [not found]                         ` <1222196652-13811-7-git-send-email-jdl-CYoMK+44s/E@public.gmane.org>
2008-09-23 19:04                           ` [PATCH 7/8] Introduce new DTS language Jon Loeliger
     [not found]                             ` <1222196652-13811-8-git-send-email-jdl-CYoMK+44s/E@public.gmane.org>
2008-09-23 19:04                               ` [PATCH 8/8] Add documentation for the " Jon Loeliger
     [not found]                                 ` <1222196652-13811-9-git-send-email-jdl-CYoMK+44s/E@public.gmane.org>
2008-09-25 13:00                                   ` Josh Boyer
2008-09-24 22:25                       ` [PATCH 5/8] Add most of the new IR implementation files Scott Wood
2008-09-24 19:17                   ` [PATCH 4/8] Add header files for new Internal Representation form Scott Wood
2008-09-24 17:07               ` [PATCH 3/8] Enhance source position implementation Scott Wood
     [not found]                 ` <48DA73DA.5000603-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2008-09-24 17:17                   ` Jon Loeliger
2008-09-24 17:21                     ` Scott Wood
2008-09-24 17:23                   ` Warner Losh
2008-09-24 17:23               ` Scott Wood
2008-09-25 12:42           ` [PATCH 2/8] Add conditionalized debug() print macro Josh Boyer
2008-09-24  2:34   ` [PATCH 0/8] Implement a new DTS Source Language Kumar Gala
     [not found]     ` <097BFF8D-317F-4E85-AC2A-4C0A8D6C608B-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2008-09-24 16:51       ` Jon Loeliger
2008-09-24 18:48         ` Jon Loeliger
2008-09-25  4:31           ` David Gibson
2008-09-25  4:26         ` David Gibson
     [not found]           ` <20080925042613.GJ15169-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2008-09-25 15:25             ` Scott Wood
2008-09-25  3:50       ` David Gibson

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=1222196652-13811-1-git-send-email-jdl@jdl.com \
    --to=jdl-cyomk+44s/e@public.gmane.org \
    --cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@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.