[PATCH 8/8] Add documentation for the new DTS language.

Josh Boyer jwboyer at linux.vnet.ibm.com
Thu Sep 25 23:00:02 EST 2008


On Tue, 23 Sep 2008 14:04:12 -0500
Jon Loeliger <jdl at jdl.com> wrote:

> +4.1) DTS Lexical Components
> +
> +Property and node names		[a-zA-Z0-9,._+*#?@-]+
> +Identifiers			\\[a-zA-Z_][a-zA-Z0-9_]*
> +Labels				[a-zA-Z_][a-zA-Z0-9_]*
> +Strings				<C-style-double-quoted-strings>
> +Comments			Both /* ... */ and // style are supported
> +Numeric literals		<C-style-integer-numbers>
> +Bytes				[0-9a-fA-F][0-9a-fA-F]
> +
> +Keywords:
> +	else
> +	for
> +	if
> +	in
> +	return
> +	void
> +	/const/
> +	/define/
> +	/incbin/
> +
> +C-style expression operators:
> +	<<
> +	>>
> +	<=
> +	>=
> +	==
> +	!=
> +	&&
> +	||
> +	+
> +	-
> +	*
> +	/
> +	%
> +
> +Additional tokens:
> +	..
> +	:=
> +	{
> +	}
> +	,
> +	&
> +

You have ^, &, |, <, >, ~, (, and ) listed in the "expr_oper:" part of
the DTS grammar below this, but none of those are included here.

Which list is complete/correct?

josh



More information about the devicetree-discuss mailing list