예제 #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");
            }
        }