Пример #1
0
        public StepReader(Stream stream)
        {
            _file = new StepFile();
            var tokenizer = new StepTokenizer(stream);

            _lexer = new StepLexer(tokenizer.GetTokens());
        }
Пример #2
0
        public StepReader(Stream stream)
        {
            _file = new StepFile();
            var tokenizer = new StepTokenizer(stream);

            _lexer = new StepLexer(tokenizer.GetTokens());
            if (tokenizer.IsFailed)
            {
                throw new Exception($"Unexpected parse character");
            }
        }