{'fraction_non_alphanumeric': 0.01455026455026455, 'fraction_numerical': 0.0, 'mean_word_length': 4.649253731343284, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Block diagram generation and parsing based on graph grammar

A block diagram is a graphical model with which it is possible to concisely visualize a system structure and is widely used in control engineering and other fields. However, there are few studies that try to formulate a syntax of block diagrams. In this research, we define a block diagram grammar which generates block diagrams by means of subgraph rewriting of a graph grammar. It includes some context-sensitive productions and is very concise. We have also developed a parser based on this block diagram grammar that parses a diagram in a bottom-up parallel method. It decides whether a diagram is valid for the grammar or not, and returns a production instance sequence for a valid diagram.