Exemplo n.º 1
0
        public Translator(TranslationState translationState)
        {
            if (translationState == null)
            {
                throw new ArgumentNullException(nameof(translationState));
            }
#if DEBUG
            if (translationState == null)
            {
                throw new ArgumentNullException(nameof(translationState));
            }
#endif
            _state = translationState; // ?? new TranslationState(new TranslationInfo());
            Info   = translationState.Principles;
        }
Exemplo n.º 2
0
 public PyStatementTranslatorVisitor(TranslationState state)
 {
     _state = state;
 }
Exemplo n.º 3
0
 public PyValueTranslator(TranslationState state)
 {
     _state = state;
 }