コード例 #1
0
        public static ImmutableArray <Instruction> ParseInstructions(this IInputContent content)
        {
            var transformed = content
                              .Transform(str => str.Split(',', StringSplitOptions.RemoveEmptyEntries & StringSplitOptions.TrimEntries))
                              .Select(str => str.AsMemory());

            return(parser.ParseCommands(transformed)
                   .ToImmutableArray());
        }
コード例 #2
0
 public static ImmutableArray <Bank> ParseBanks(this IInputContent content)
 {
     return(content.Transform(ParseBanksFromContent));