Add cargo gen-kinds documentation

This commit is contained in:
Daniel McNab 2018-10-04 21:43:58 +01:00
parent 81bf190f7a
commit 80eefcbc05
7 changed files with 43 additions and 4 deletions

View file

@ -1,3 +1,6 @@
// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run
// Do not edit manually
use {
ast,
SyntaxNodeRef, AstNode,

View file

@ -1,3 +1,8 @@
{# THIS File is not automatically generated:
the below applies to the result of this template
#}// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run
// Do not edit manually
use {
ast,
SyntaxNodeRef, AstNode,

View file

@ -1,3 +1,5 @@
// Stores definitions which must be used in multiple places
// See `cargo gen-kinds` (defined in crates/tools/src/main.rs)
Grammar(
single_byte_tokens: [
[";", "SEMI"],
@ -23,8 +25,9 @@ Grammar(
["^", "CARET"],
["%", "PERCENT"],
],
// TODO: Confirm surmision: the tokens which cannot be recorded in a single UTF-8 byte
multi_byte_tokens: [
[".", "DOT"],
[".", "DOT"], // Note: DOT is here because <TODO: REASON>
["..", "DOTDOT"],
["...", "DOTDOTDOT"],
["..=", "DOTDOTEQ"],

View file

@ -1,3 +1,6 @@
// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run
// Do not edit manually
#![allow(bad_style, missing_docs, unreachable_pub)]
#![cfg_attr(rustfmt, rustfmt_skip)]
use super::SyntaxInfo;

View file

@ -1,3 +1,8 @@
{# THIS File is not automatically generated:
the below applies to the result of this template
#}// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run
// Do not edit manually
#![allow(bad_style, missing_docs, unreachable_pub)]
#![cfg_attr(rustfmt, rustfmt_skip)]
use super::SyntaxInfo;