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

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