devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [0/10] RFC: A new start on richer dtc expression support [REPOST]
@ 2014-02-27 11:21 David Gibson
       [not found] ` <1393500099-28544-1-git-send-email-david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: David Gibson @ 2014-02-27 11:21 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA; +Cc: grant.likely-s3s/WqlpOiPyB63q8FvJNQ

I previously sent these patches to the new devicetree-compiler, but I
suspect not many people had subscribed so I'm resending to the
devicetree list.

So, we've been talking about richer expression / constant / function /
macro support for dtc since forever.  So far attempts to start on that
haven't gotten very far (in large part because of my pickiness about
new syntax).

Anyway, I've started having a new crack at this.  This patch series
implements the infrastructure for "runtime" evaluated expressions.
For now they're just constructed and immediately evaluated, so they're
not quite usable for user-defined functions yet, but it's a big step
towards that.

10/10 is the only patch in this series which implements new
user-visible functionality, the rest are just internal reworking.
10/10 experiments with the new mechanisms to implement string append
and repeat operators - I'm not 100% sure if I'm happy with the syntax
used for this yet (overloaded + and *, like Python).  Suggestions
welcome.

This is indirectly relevant to the schema checking concepts current
much discused.  Any schema language is likely to want richer
expression support than we currently have to be useful.  In addition,
I expect we'll need data structures very similar to the expression
trees implemented here to keep track of schema "patterns" or other
pieces.

These patches can also be found in the 'expressions' branch at
git://git.kernel.org/pub/scm/utils/dtc/dtc.git.  [NOTE: I'm
considering this an experimental branch for now, which will be rebased
at whim].
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-02-27 11:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27 11:21 [0/10] RFC: A new start on richer dtc expression support [REPOST] David Gibson
     [not found] ` <1393500099-28544-1-git-send-email-david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
2014-02-27 11:21   ` [PATCH 01/10] First cut at expression trees David Gibson
2014-02-27 11:21   ` [PATCH 02/10] Add srcpos information to expressions David Gibson
2014-02-27 11:21   ` [PATCH 03/10] Add type information to expression trees David Gibson
2014-02-27 11:21   ` [PATCH 04/10] Add string and bytestring expression types David Gibson
2014-02-27 11:21   ` [PATCH 05/10] Integrate /incbin/ with expanded expressions David Gibson
2014-02-27 11:21   ` [PATCH 06/10] Implement arrays as expressions David Gibson
2014-02-27 11:21   ` [PATCH 07/10] Implement labels within property values as bytestring expressions David Gibson
2014-02-27 11:21   ` [PATCH 08/10] Implement path references in terms of " David Gibson
2014-02-27 11:21   ` [PATCH 09/10] Re-implement "," in property definitions as a bytestring operator David Gibson
2014-02-27 11:21   ` [PATCH 10/10] Implement string concatenate and repeat operators David Gibson

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 NNTP newsgroup(s).