MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / parse

Method parse

src/modelica/ModelicaFileImpl.cpp:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void ModelicaFileImpl::parse(std::string_view text) {
46 //m_text = text;
47
48 // Create ANTLR input stream
49 m_inputStream = std::make_unique<antlr4::ANTLRInputStream>(text);
50 m_modelicaLexer = std::make_unique<modelicaLexer>(m_inputStream.get());
51 m_tokenStream = std::make_unique<antlr4::CommonTokenStream>(m_modelicaLexer.get());
52 m_modelicaParser = std::make_unique<modelicaParser>(m_tokenStream.get());
53 //m_ctx = m_modelicaParser->stored_definition();
54
55 updateCTX();
56 m_classDefinitionsDirty = true;
57}
58
59modelicaParser* ModelicaFileImpl::parser() const {
60 return m_modelicaParser.get();

Callers 3

addComponentClauseMethod · 0.45
addConnectClauseMethod · 0.45
removeConnectClauseMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected