I am trying to design a faculty parser, I was planning to read a class file, a Another class to map data to the square and then to deal with data storage. The part in which I have a big problem, is how the examples of those classes should communicate with each other. Any advice will be appreciated.
I do not need to communicate classes) but it would suggest that some strategy method is used Will go
You have a file that will be able to read the file and put it in the syntax. For example, something that can handle the whitespace and can return formatted information such as 'token', 'word' etc.
The semantic reading and parse is passed in the semantic parser, meaning the meaning of semantic parser means. For example, you can expect "id, command, token, string" in that sequence, using the semantic parser command pattern.
Semantic class output structured data, so your structure builder (builder pattern) is passed in.
So your code might look like this;
MyDataStructure = DataBuilder (Semantic Parser (Syntaxpars (File Reader (Filename))));
HH
Comments
Post a Comment