zephyr/scripts/dts
Ulf Magnusson c2d702b961 dts: dtlib: Fix parsing of character literals
This was allowed due to a misunderstanding:

    foo = 'x';

In reality, 'x' works like an integer literal, and is used like this:

    foo = < 'x' >;

Fix character literal parsing to match the C tools.

Also fix backslash escape parsing to match the C tools exactly
(get_escape_char() in util.c): \<char> should be turned into <char> if
<char> isn't recognized as a special escape character, instead of being
left alone. This fixes parsing of e.g. '\'' (a character literal with a
single quote in it).

Piggyback some more tests for weird property/node names.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-08-13 07:41:45 -05:00
..
extract dts: riscv: Add sifive,plic-1.0.0 binding and fix riscv,ndev values 2019-08-02 11:44:09 +02:00
test-bindings dts: dtlib/edtlib: Add a syntax-based type-checking system 2019-08-13 07:41:45 -05:00
test-bindings-2 scripts: dts: Add test for multiple binding directories 2019-08-03 14:17:49 -04:00
devicetree.py scripts: dts: Consistently open text files with utf-8. 2019-08-05 17:47:57 -04:00
dtlib.py dts: dtlib: Fix parsing of character literals 2019-08-13 07:41:45 -05:00
edtlib.py dts: edtlib: Fix outdated doc comment for _init_devices() 2019-08-13 07:41:45 -05:00
extract_dts_includes.py scripts/dts: Fix detection of a GPIO specifier 2019-08-07 13:15:51 -04:00
gen_defines.py dts: dtlib/edtlib: Add a syntax-based type-checking system 2019-08-13 07:41:45 -05:00
test-multidir.dts scripts: dts: Add test for multiple binding directories 2019-08-03 14:17:49 -04:00
test.dts dts: dtlib/edtlib: Add a syntax-based type-checking system 2019-08-13 07:41:45 -05:00
testdtlib.py dts: dtlib: Fix parsing of character literals 2019-08-13 07:41:45 -05:00
testedtlib.py dts: dtlib/edtlib: Add a syntax-based type-checking system 2019-08-13 07:41:45 -05:00