示例#1
0
        static void Main(string[] args)
        {
            if (TryPrintOperations() || TryConvertCode())
            {
                Environment.Exit(0);
            }

            var languageProvider = GetLanguageProvider();
            var code             = GetCode();

            var runtime = new LynxRuntime();

            if (TryGetInput(out var input))
            {
                runtime.Execute(
                    languageProvider.Compile(Regex.Unescape(input)));
            }

            runtime.Execute(
                languageProvider.Compile(code));

            if (Debugger.IsAttached)
            {
                Console.ReadLine();
            }
        }
示例#2
0
 public abstract object[] Execute(Arguments arguments, LynxRuntime runtime);