예제 #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);
 }