tokmd-analysis 1.13.1

Analysis logic and enrichers for tokmd receipts.
Documentation
//! Static operator tables for Halstead-supported languages.

pub(super) const RUST: &[&str] = &[
    "fn", "let", "mut", "if", "else", "match", "while", "for", "loop", "return", "break",
    "continue", "struct", "enum", "impl", "trait", "pub", "use", "mod", "async", "await", "move",
    "ref", "self", "Self", "where", "type", "const", "static", "unsafe", "extern", "crate",
    "super", "as", "in", "->", "=>", "::", "=", "==", "!=", "<", ">", "<=", ">=", "+", "-", "*",
    "/", "%", "&", "|", "^", "!", "&&", "||", "<<", ">>", "+=", "-=", "*=", "/=", "%=", "&=", "|=",
    "^=", "<<=", ">>=", "..", "..=", "?",
];

pub(super) const JAVASCRIPT_TYPESCRIPT: &[&str] = &[
    "function",
    "var",
    "let",
    "const",
    "if",
    "else",
    "switch",
    "case",
    "while",
    "for",
    "do",
    "return",
    "break",
    "continue",
    "class",
    "new",
    "this",
    "super",
    "import",
    "export",
    "default",
    "try",
    "catch",
    "finally",
    "throw",
    "async",
    "await",
    "yield",
    "typeof",
    "instanceof",
    "in",
    "of",
    "delete",
    "void",
    "=>",
    "=",
    "==",
    "===",
    "!=",
    "!==",
    "<",
    ">",
    "<=",
    ">=",
    "+",
    "-",
    "*",
    "/",
    "%",
    "&",
    "|",
    "^",
    "!",
    "&&",
    "||",
    "~",
    "<<",
    ">>",
    ">>>",
    "+=",
    "-=",
    "*=",
    "/=",
    "%=",
    "&=",
    "|=",
    "^=",
    "<<=",
    ">>=",
    ">>>=",
    "**",
    "**=",
    "?.",
    "??",
    "??=",
    "++",
    "--",
    "...",
];

pub(super) const PYTHON: &[&str] = &[
    "def", "class", "if", "elif", "else", "while", "for", "return", "break", "continue", "import",
    "from", "as", "try", "except", "finally", "raise", "with", "yield", "lambda", "pass", "del",
    "global", "nonlocal", "assert", "async", "await", "and", "or", "not", "is", "in", "=", "==",
    "!=", "<", ">", "<=", ">=", "+", "-", "*", "/", "//", "%", "**", "&", "|", "^", "~", "<<",
    ">>", "+=", "-=", "*=", "/=", "//=", "%=", "**=", "&=", "|=", "^=", "<<=", ">>=", ":=",
];

pub(super) const GO: &[&str] = &[
    "func",
    "var",
    "const",
    "type",
    "struct",
    "interface",
    "if",
    "else",
    "switch",
    "case",
    "for",
    "range",
    "return",
    "break",
    "continue",
    "goto",
    "defer",
    "go",
    "select",
    "chan",
    "map",
    "package",
    "import",
    "fallthrough",
    ":=",
    "=",
    "==",
    "!=",
    "<",
    ">",
    "<=",
    ">=",
    "+",
    "-",
    "*",
    "/",
    "%",
    "&",
    "|",
    "^",
    "!",
    "&&",
    "||",
    "<<",
    ">>",
    "&^",
    "+=",
    "-=",
    "*=",
    "/=",
    "%=",
    "&=",
    "|=",
    "^=",
    "<<=",
    ">>=",
    "&^=",
    "++",
    "--",
    "<-",
];

pub(super) const C_FAMILY: &[&str] = &[
    "if",
    "else",
    "switch",
    "case",
    "while",
    "for",
    "do",
    "return",
    "break",
    "continue",
    "class",
    "struct",
    "new",
    "delete",
    "try",
    "catch",
    "throw",
    "finally",
    "void",
    "static",
    "const",
    "public",
    "private",
    "protected",
    "virtual",
    "override",
    "abstract",
    "interface",
    "extends",
    "implements",
    "import",
    "include",
    "using",
    "namespace",
    "typedef",
    "template",
    "=",
    "==",
    "!=",
    "<",
    ">",
    "<=",
    ">=",
    "+",
    "-",
    "*",
    "/",
    "%",
    "&",
    "|",
    "^",
    "!",
    "&&",
    "||",
    "~",
    "<<",
    ">>",
    "+=",
    "-=",
    "*=",
    "/=",
    "%=",
    "&=",
    "|=",
    "^=",
    "<<=",
    ">>=",
    "++",
    "--",
    "->",
    "::",
    "sizeof",
    "typeof",
];

pub(super) const RUBY: &[&str] = &[
    "def",
    "class",
    "module",
    "if",
    "elsif",
    "else",
    "unless",
    "while",
    "until",
    "for",
    "do",
    "return",
    "break",
    "next",
    "begin",
    "rescue",
    "ensure",
    "raise",
    "yield",
    "require",
    "include",
    "extend",
    "attr_reader",
    "attr_writer",
    "attr_accessor",
    "self",
    "super",
    "end",
    "and",
    "or",
    "not",
    "=",
    "==",
    "!=",
    "<",
    ">",
    "<=",
    ">=",
    "+",
    "-",
    "*",
    "/",
    "%",
    "&",
    "|",
    "^",
    "!",
    "&&",
    "||",
    "~",
    "<<",
    ">>",
    "+=",
    "-=",
    "*=",
    "/=",
    "%=",
    "&=",
    "|=",
    "^=",
    "<<=",
    ">>=",
    "**",
    "**=",
    "<=>",
    "=~",
    "!~",
    "..",
    "...",
];