Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::shader::wgsl::detail::LexicalTable Struct Reference

Lexical classes of each byte, plus the token kind of each single-character punctuator. More...

#include "donner/gpu/shader/wgsl/Parser.h"

Public Attributes

uint8_t classes [256] = {}
 Class bits for each byte value.
TokenKind punctuation [256] = {}
 Single-character punctuator kind, or End.

Static Public Attributes

static constexpr uint8_t kSpace = 1
 Whitespace between tokens.
static constexpr uint8_t kIdentifierStart = 2
 ASCII letter or _.
static constexpr uint8_t kDigit = 4
 ASCII decimal digit. A byte that continues an identifier.
static constexpr uint8_t kIdentifierContinue = kIdentifierStart | kDigit

Detailed Description

Lexical classes of each byte, plus the token kind of each single-character punctuator.


The documentation for this struct was generated from the following file: