dawn-cmake/src
Ben Clayton 786bc92002 wsgl parser: Add expect_block(), use it
`expect_block()` takes a start and end token, along with a function to parse a lexical block body.

This reduces code, keeps error messages consistent, and also gives us a future place to try resynchronising the parser so we can have more than one error emitted.

`expect_paren_block()` and `expect_brace_block()` are convenience helpers for providing the start and end tokens for common block types.

Bug: tint:282
Change-Id: I432a0301727b131a6fce875687b952dfc6889a4b
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/31736
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
2020-11-04 20:08:51 +00:00
..
ast Add Source parameter to decoration constructors 2020-11-03 21:48:20 +00:00
diagnostic formatter: Remove colon line prefix with no source 2020-11-03 18:27:29 +00:00
inspector [inspector] Refactor to handle access control wrapped uniform-buffers 2020-11-04 16:08:00 +00:00
reader wsgl parser: Add expect_block(), use it 2020-11-04 20:08:51 +00:00
transform Add Source parameter to decoration constructors 2020-11-03 21:48:20 +00:00
writer [wgsl-reader][wgsl-writer] Support new sampled texture syntax. 2020-11-04 19:03:21 +00:00
CMakeLists.txt ast: Have all decorations derive from base class 2020-11-03 21:40:20 +00:00
context.cc Context object owns a TypeManager 2020-03-27 00:47:16 +00:00
context.h Documentation fixes 2020-03-31 21:15:40 +00:00
scope_stack.h [validation] Validates declaration name uniqueness 2020-08-11 20:44:06 +00:00
scope_stack_test.cc Adding support for testing BUILD.gn 2020-04-17 13:18:20 +00:00
source.cc Fixup lint errors. 2020-11-03 16:26:09 +00:00
source.h Fix all doxygen warnings 2020-11-02 18:02:18 +00:00
type_determiner.cc Fixup lint errors. 2020-11-03 16:26:09 +00:00
type_determiner.h Fixup lint errors. 2020-11-03 16:26:09 +00:00
type_determiner_test.cc Add Source parameter to decoration constructors 2020-11-03 21:48:20 +00:00
type_manager.cc Context object owns a TypeManager 2020-03-27 00:47:16 +00:00
type_manager.h [ast] Determining subtype of StorageTextureType 2020-08-31 15:11:23 +00:00
type_manager_test.cc [ast] Determining subtype of StorageTextureType 2020-08-31 15:11:23 +00:00
validator.cc Fixup lint errors. 2020-11-03 16:26:09 +00:00
validator.h [Validator] Using pointers instead of refs 2020-07-30 02:27:03 +00:00
validator_control_block_test.cc Fixup lint errors. 2020-11-03 16:26:09 +00:00
validator_function_test.cc Add Source parameter to decoration constructors 2020-11-03 21:48:20 +00:00
validator_impl.cc Remove tint::Source(size_t, size_t) constructor 2020-11-02 15:07:47 +00:00
validator_impl.h Update builtin methods. 2020-09-22 19:42:13 +00:00
validator_test.cc Add Source parameter to decoration constructors 2020-11-03 21:48:20 +00:00
validator_test_helper.cc Fixup lint errors. 2020-11-03 16:26:09 +00:00
validator_test_helper.h Fixup lint errors. 2020-11-03 16:26:09 +00:00