コード例 #1
0
        void SetCommandSegment(ConfigCommand command, Segment segment)
        {
            command.Segment = segment;

            if (segment.IsTerminal)
            {
                command.Using = _config.TerminalType;
            }
            else if (_ntTypes.TryGetValue(segment, out var cUsing))
            {
                command.Using = cUsing;
            }
        }
コード例 #2
0
 protected override ConfigRule Reduce_Rule_2(ConfigRule segmentListSeg, ConfigCommand commandSeg)
 {
     segmentListSeg.Command = commandSeg;
     return(segmentListSeg);
 }