World Conquest Chronicles

World Conquest Chronicles

Интерпретатор ЯП Tick-tock, v2.2.1

Интерпретатор языка программирования Tick-tock.

Improving tests and refactoring.

Change Log

  • improving tests:
    • generate mocks inside packages in which they are used;
    • simplify tests:
      • of the translator package;
      • of the builtin package;
  • refactoring:
    • use the github.com/thewizardplusplus/go-sync-utils package:
      • replace the waiter.Waiter interface to syncutils.WaitGroup one;
      • replace the testutils.NewSynchronousWaiter type to syncutils.MultiWaitGroup one;
      • use the syncutils.UnboundedSend() function in the runtime.ConcurrentActor.SendMessage() method;
    • fix functions:
      • make public:
        • parser.ParseToAST() function;
        • translator.TranslateExpression() function;
      • rename the translator.Translate() function to translator.TranslateProgram() one;
      • remove the parser.Parse() function.

Описание

Описание языка.

Репозиторий

Ссылка: https://github.com/thewizardplusplus/tick-tock/tree/v2.2.1.

Содержание: код, документация, инструменты (подсветка синтаксиса) и примеры.

Лицензия:

  • кода — MIT;
  • документации — CC BY 4.0.