yog-script-analyze 0.4.0

Yog Script (.ys, .yns) analyzed: its lexer, parser and syntax tree, names resolved, the class index model — what the build and the editors read a source with.
Documentation
1
2
3
4
5
6
7
8
9
10
//! `operator`.

use crate::words::{Role, Word};

pub static WORD: Word = Word {
    text: "operator",
    doc: "An operator of a type of one's own, as in C#: `public static Vec operator +(Vec a, Vec b) => new Vec(a.X + b.X, a.Y + b.Y);` (`+ - * / % == != < > <= >=`, unary `-` `!`). `==` and `!=` come together, as `<` and `>` do.",
    reserved: true,
    roles: &[Role::Part],
};