Example #1
0
        public StepReader(Stream stream)
        {
            _file = new StepFile();
            var tokenizer = new StepTokenizer(stream);

            _lexer = new StepLexer(tokenizer.GetTokens());
        }
Example #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");
            }
        }