예제 #1
0
        // --------------------------------------------------------------

        public static string Name(Rep ρ) => ρ.name;
예제 #2
0
 public static string Body(Rep ρ)
 => (ρ.body ?? ρ.a) + (ρ.nts ? null : " ");
예제 #3
0
 public static string Tag(Rep x) => $"__%{x.b}%__";
예제 #4
0
 public bool Encloses(Rep that) => this.b.Length == that.b.Length ? false : this.b.Contains(that.b);
예제 #5
0
        // Functions ----------------------------------------------------

        public static string[] DivBridging(string[] tokens, Rep rule)
        {
            string[] lh = rule.b.Tokenize();
            return(tokens.Replace(lh, new string[] { rule.a }));
        }
예제 #6
0
 public static string[] operator /(string[] tokens, Rep rule) => Rep.Rev(tokens, rule);
예제 #7
0
파일: Map.cs 프로젝트: active-logic/uta
        // Functions ----------------------------------------------------

        public void Rebuild(Rep[] that)
        {
            declarative = that; rules = Rep.Reorder(that);
        }