scieee AI-readable full text Open interactive document viewer

Development of self-diagnosis tests system using a DSL for creating new test suites for integration in a cyber-physical system

Pereira, Ricardo B.; Ramalho, José Carlos; Brito, Miguel A.

Abstract

Testing Cyber-physical systems (CPS) requires highly qualified engineers to design the tests since its computational part is programmed in low-level languages. The origin of this work arises from the need to find a solution that optimizes this problem and allows abstracting the current methods so that the tests can be created and executed more efficiently. We intend to do this by creating a self-diagnosis tests system that allows us to automate some of the current processes in the creation and execution of test suites. The work presented here addresses the problem by creating a new self-diagnosis tests system that will guarantee the reliability and integrity of the CPS. In detail, this paper begins by exposing a study on the current state of the art of test automation, Keyword-driven Testing (KDT) methodology and Domain-specific Languages (DSL). A new modular and extensible architecture is proposed for self-diagnosis tests systems based on two main concepts: the creation of a DSL combined with the use of the KDT methodology, as well as a methodology to extend it and integrate it into a CPS. A new self-diagnosis tests system has been proposed that applies the proposed architecture proving that it is possible to carry out the self-diagnosis in real-time of the CPS and allowing the integration of any type of test. To validate the implementation of the system, 28 test cases were carried out to cover all its functionalities. The results show that all test cases passed and, therefore, the system meets all the proposed objectives.

Full text

Development of Self-diagnosis Tests System1 Using a DSL for Creating New Test Suites for2 Integration in a Cyber-physical System3 Ricardo B. Pereira4 Department of Informatics, University of Minho, Braga, Portugal5 ricardo-97-p[email protected]6 José C. Ramalho7 Centro Algoritmi (CAlg-CTC), Department of Informatics, University of Minho, Braga, Portugal8 [email protected]9 Miguel A. Brito10 Centro Algoritmi, Department of Information Systems, University of Minho, Guimarães, Portugal11 [email protected]12 Abstract 13 Testing Cyber-physical systems (CPS) requires highly qualified engineers to design the tests since 14 its computational part is programmed in low-level languages. The origin of this work arises from 15 the need to find a solution that optimizes this problem and allows abstracting the current methods 16 so that the tests can be created and executed more efficiently. We intend to do this by creating a 17 self-diagnosis tests system that allows us to automate some of the current processes in the creation 18 and execution of test suites. The work presented here addresses the problem by creating a new 19 self-diagnosis tests system that will guarantee the reliability and integrity of the CPS. In detail, this 20 paper begins by exposing a study on the current state of the art of test automation, Keyword-driven 21 Testing (KDT) methodology and Domain-specific Languages (DSL). A new modular and extensible 22 architecture is proposed for self-diagnosis tests systems based on two main concepts: the creation 23 of a DSL combined with the use of the KDT methodology, as well as a methodology to extend it 24 and integrate it into a CPS. A new self-diagnosis tests system has been proposed that applies the 25 proposed architecture proving that it is possible to carry out the self-diagnosis in real-time of the 26 CPS and allowing the integration of any type of test. To validate the implementation of the system, 27 28 test cases were carried out to cover all its functionalities. The results show that all test cases 28 passed and, therefore, the system meets all the proposed objectives.29 2012 ACM Subject Classification Software and its engineering → Parsers; Computer systems 30 organization → Embedded and cyber-physical systems; Information systems → RESTful web 31 services32 Keywords and phrases Web Application, DSL, Self-diagnosis, Test automation, Cyber-physical 33 systems34 Digital Object Identifier 10.4230/OASIcs.SLATE.2021.1835 1 Introduction36 Today, the production of many industrial companies is supported by cyber-physical systems 37 (CPS) and, therefore, they must be able to obtain the maximum performance of these 38 systems. For this, it is necessary that these systems remain reliable and can guarantee their 39 functionality [ 9 ]. However, to ensure that these systems work correctly, a diagnosis of them 40 is necessary regularly. Testing CPS requires highly qualified engineers to design the tests 41 since its computational part is programmed in low-level languages. The origin of this work 42 arises from the need to find a solution that optimizes this problem and allows abstracting the 43 current methods so that the tests can be created and executed more efficiently. We intend 44 ©Ricardo B. Pereira, José C. Ramalho and Miguel A. Brito; licensed under Creative Commons License CC-BY 4.0 10th Symposium on Languages, Applications and Technologies (SLATE 2021). Editors: Ricardo Queirós, Mário Pinto, Alberto Simões, Filipe Portela, and Maria João Pereira; Article No. 18; pp. 18:1–18:16 OpenAccess Series in Informatics Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany 18:2 Self-diagnosis Tests System Using a DSL for Creating New Test Suites to do this by creating a self-diagnosis tests system that allows us to automate some of the 45 current processes in the creation and execution of test suites.46 The work presented here addresses the problem by creating a new self-diagnosis tests 47 system that will guarantee the reliability and integrity of the CPS. In detail, this paper 48 begins by exposing a study on the current state of the art of test automation, Keyword- 49 driven Testing (KDT) methodology and Domain-specific Languages (DSL). A new modular 50 and extensible architecture is proposed for self-diagnosis tests systems based on two main 51 concepts: the creation of a DSL combined with the use of the KDT methodology, as well as 52 a methodology to extend it and integrate it into a CPS. A new system of self-diagnosis tests 53 system has been proposed that applies the proposed architecture and aims to prove that it is 54 possible to perform the self-diagnosis in real-time of the CPS and allow the integration of 55 any type of test through the combination of a DSL with the KDT methodology. Some test 56 cases were also carried out to validate the implemented solution.57 Section 2 analyzes the state of the art in test automation, KDT methodology and DSL. 58 Section 3 describes the structure and architecture of the system. Section 4 describes the 59 implementation of the system. Finally, Section 5 concludes and identifies future work.60 2 State of the art61 In this section, a review of the state of the art in test automation will be presented in 62 Section 2.1. In Section 2.2, KDT methodolody is presented as well as the advantages and 63 disadvantages of using it. In Section 2.3, a brief introduction is made to the concept of 64 DSL and, more specifically, how to apply this concept with the Another Tool for Language65 Recognition (ANTLR).66 2.1 Test Automation67 The importance of testing automation is directly related to the quality of the final product. 68 The execution of all functional tests before delivery guarantees the lowest incidence of errors 69 in the post-delivery of the final product. As such, software developers/creators are required 70 that their projects maintain a certain quality standard during all phases of development 71 until the launch of a new product. Therefore, testing at the end of each stage no longer 72 works in a professional environment. This is because the occurrence/discovery of unforeseen 73 obstacles can significantly delay the development of the software. In recent years, it has been 74 found that the software development market has increased its competitiveness, due to the 75 modernization of the technologies involved and due to the maturity of the capacity to develop 76 software. Thus, the range of information technology solutions, to meet the needs of consumer 77 organizations, has increased considerably, which ends up making it difficult for users to 78 choose when purchasing a product. In this competitive scenario, consumer organizations, 79 when opting for software, are increasingly relying on quality criteria. One of the pillars for 80 ensuring this quality of the software product is the testing process [1].81 In the current software market, the concern for creating quality and error-free products 82 has led companies to look for models and processes that guarantee quality to satisfy the needs 83 of their customers. Unsuccessful projects, with expired deadlines and defective products, lead 84 to customer dissatisfaction, high maintenance costs and compromise the company’s image. 85 The main objective of a software test is to define the implementation of this software that 86 meets all the specifications and expectations defined and expected by the customer, that is, 87 the objective is to “verify” if what was specified in the requirements phase is what really 88 was developed. When verifying that the implemented software meets all specifications and 89 R. B. Pereira, J. C. Ramalho and M. A. Brito 18:3 expectations defined and expected by the customer, it also looks for errors in the software. 90 The software test must be seen as a part of its quality process.91 Test automation is not limited to just performing the tests but above all being aware of 92 when and where the tests need to be carried out, thus leaving the test team more time to 93 plan more effective tests with better quality accuracy instead of worrying about scheduling94 them. Thus, automation results in the mechanization of the entire process of monitoring and 95 managing the needs for testing and evaluation associated with software development [3].96 2.2 Keyword-Driven Testing97 KDT is a type of functional automation testing methodology that is also known as table- 98 oriented testing or action-based testing. In KDT, we use a table format, usually a spreadsheet, 99 to define keywords or action words that represent the content of the tests in a simple way. 100 But it also allows the use of a keyword to represent part of the test case and in this way 101 make the creation of the test case simpler, since we can reuse the keywords and the whole 102 process they represent in different test cases. It allows novice or non-technical users to write 103 tests more abstractly and it has a high degree of reusability. Industrial control software has 104 been having an enormous increase in complexity as technology has developed and requires a 105 systematic testing approach to enable efficient and effective testing in the event of changes. 106 KDT has been proving that it is a valuable test method to support these test requirements 107 [ 16 ]. Recent results from other researchers have shown that the design of the KDT test is 108 complex with several levels of abstraction and that this design favours reuse, which has the 109 potential to reduce necessary changes during evolution [ 6 ]. Besides, keywords change at 110 a relatively low rate, indicating that after creating a keyword, only localized and refined 111 changes are made. However, the same results also showed that KDT techniques require tools 112 to support keyword selection, refactoring, and test repair [4].113 2.2.1 Advantages114 Fast execution of test cases;115 Software testing in less time;116 All manual testing problems are solved by automated testing;117 Repeating test cases are handled in an easy way.118 2.2.2 Disadvantages119 Sometimes some knowledge of programming and skill is needed to use these tools;120 Maintenance is a complicated task and can be expensive;121 2.3 Domain-Specific Language122 DSL is a language meant to be used in the context of a particular domain. A domain could 123 be a business context or an application context. A DSL does not attempt to please all. 124 Instead, it is created for a limited sphere of applicability and use, but it’s powerful enough 125 to represent and address the problems and solutions in that sphere [ 5 ]. A DSL can be 126 used to generate source code from a keyword. However, code generation from a DSL is not 127 considered mandatory, as its primary purpose is knowledge. However, when it is used, code 128 generation is a serious advantage in engineering. DSL will never be a solution to all software 129 engineering problems [ 10 ], but their application is currently unduly limited by the lack of 130 knowledge available to DSL developers, so further exploration of this area is needed [ 7 ]. 131 SLATE 2021 18:4 Self-diagnosis Tests System Using a DSL for Creating New Test Suites Other researchers used DSL in CPS and left their testimony of how the specification language 132 hides the details of the implementation. The specifications are automatically enriched with 133 the implementation through reusable mapping rules. These rules are implemented by the 134 developers and specify the execution order of the modules and how the input/output variables 135 are implemented [ 2 ]. This allows the reuse of software components (e.g. modules or classes) 136 and improves software productivity and quality [8].137 2.4 ANTLR138 ANTLR is a parser generator, a tool that helps you to create parsers [ 12 ]. A parser takes a 139 piece of text and transforms it into an organized structure, a parse tree, also known as an 140 Abstract Syntax Tree (AST) [ 15 ]. AST is like a story describing the content of the code, or 141 its logical representation, created by putting together the various pieces [ 13 ]. Figure 1 shows 142 the parsing process.143 Figure 1 Block diagram of a standard Language Processor The Parsing process shown in Figure 1 goes through three major phases explained below: 144 Lexical Analysis:145 It is performed by a component usually called Lexer, Lexical Analyser or Tokenizer;146 The Lexer reads and divides the input (character or byte stream) into tokens applying 147 lexical rules;148 Lexical rules are defined using regular expressions and aim to identify terminal symbols 149 and specify tokens;150 In the end, the Lexer generates a token stream as output.151 Figure 2 shows the illustration of this process.152 Syntactic Analysis:153 It is performed by a component usually called Parser, Syntatic Analyser or Grammar; 154 The parser gives the token stream a structure by checking token order against structural 155 rules;156 These Structural rules define the order and structure of token combination;157 In the end, the Parser generates a parse tree as output.158 Figure 3 shows the illustration of this process.159 Transformations:160 It is performed by a component usually called Transformer or Walker and it follows 161 the pattern Visitor or Listener;162 The Transformer traverses the parse tree in order to produce some output;163 The traversal defines an action for each node of the parse tree;164 The action can output text (string) or any other complex object.165 Figure 4 shows the illustration of this process.166 R. B. Pereira, J. C. Ramalho and M. A. Brito 18:5 Figure 2 Block diagram of a Lexical Analyzer Figure 3 Block diagram of a Syntactic Analyzer Figure 4 Block diagram of a Transformer SLATE 2021 18:6 Self-diagnosis Tests System Using a DSL for Creating New Test Suites ANTLR is a parser generator that uses ALL(*). It parses the input dynamically at 167 runtime and uses a top-down parser left to right by constructing a Leftmost derivation of 168 the input and looking any number of ahead tokens when selecting among alternative rules 169 [ 14 ]. The Visitor pattern let us decide how to traverse the tree and wich nodes we will visit. 170 It also allows us to define how many times we visit a node [11].171 3 Architecture172 As the architecture incorporates several diversified components, its modelling was divided 173 into two phases. In the first phase, the part of the architecture that refers to the system to 174 be developed and that includes the management and configuration of the tests are explained. 175 In the second phase, the general architecture of the CPS is presented.176 3.1 Self-diagnosis Tests System Architecture177 To obtain a complete understanding of this architecture, it is necessary to understand the 178 3 tiers that are present, Frontend, Backend and Database. We can see the architecture in 179 figure 5, shown below: Figure 5 Proposed architecture for self-diagnosis tests system 180 3.1.1 Frontend181 In this tier, we have two first elements, OPERATOR and TEST MANAGER , which represent the 182 two types of users that the system has. Therefore, according to the permissions of each 183 one, this tier makes available to each user the respective interface that will give access 184 to the realization of the functions of each one in the system. The two elements below in 185 the tier, TESTS EXECUTION and SYSTEM CONFIGURATION , represent the different interfaces 186 that each user will have access to. In this case, the OPERATOR type user will have access 187 to the system TESTS EXECUTION mode and the TEST MANAGER type user will have access to 188 the SYSTEM CONFIGURATION mode. The last element of this tier, USER INTERFACE SERVER , 189 represents the logic of the Client. It is in charge of implementing any logic that exists in this 190 tier, such as, for example, providing an adequate interface for the type of user that must 191 comply with it or even the manipulation of data in the formation of web pages. It is also 192 this server that establishes the connection to the Backend tier, making HTTP requests to 193 request data or actions, receiving and validating data that arrives through HTTP responses. 194 R. B. Pereira, J. C. Ramalho and M. A. Brito 18:7 3.1.2 Backend195 The Backend tier, unlike what was done in the Frontend tier, will be analyzed from the bottom 196 up, as it will be understood more intuitively. In this tier, we start by looking at two elements 197 in parallel. The OBJECT DATA MODELING element represents the module responsible for 198 establishing the connection between this tier and the Database tier, that is, it is this module 199 that performs the queries and receives data from the database. Element TESTS MANAGEMENT200 is responsible for the acquisition and management of the primitive tests of the system and 201 the configuration of new test suites for the system, using the KDT methodology and a 202 DSL. Above, we see the BUSINESS LOGIC SERVER element that represents the Server that 203 implements all the logic of this tier. This component is responsible for executing the tests and 204 for the internal organization of all other components of this tier. Manages all data arriving 205 at the system, guaranteeing its integrity, and also provides the routes or services through 206 which this tier responds to Clients requests. The last element of this tier, API FRAMEWORK , is 207 responsible for building and making the REST API available to the Client. This element 208 implements the routes that are created in the BUSINESS LOGIC SERVER element and, in this 209 way, the Client can make HTTP requests to the Server.210 3.1.3 Database211 Finally, it remains only to present and explain the Database tier, which is also the simplest 212 tier of this architecture. It consists of the system database, which is a document database that 213 stores documents in JSON. All data sent to the Backend tier, via OBJECT DATA MODELING , is 214 in JSON, which is an advantage because all data processing and manipulation in the system 215 is always done in this format.216 3.2 General Architecture for Cyber-Physical System217 In this section, the final CPS architecture is presented and explained, where we integrate all 218 its components with the self-diagnosis tests system. This architecture enables the CPS to 219 diagnose itself and, thus, be able to identify the failures in case of any internal error. The 220 architecture, being the final abstraction of the system, can be seen in figure 6.221 Figure 6 Proposed architecture for a self-diagnosis test system integrated with the CPS SLATE 2021 18:8 Self-diagnosis Tests System Using a DSL for Creating New Test Suites In this architecture, we can easily identify 4 component groups in which three of them 222 will form an integral part of the CPS: Devices Under Test, Electronic Test Drivers and the 223 Self-Diagnosis Tests System. The last group will be an important intervenient, but it is not 224 an integral part of the CPS, the User Types. Each of these groups will be explained in detail, 225 as each has its particularities.226 The Devices Under Test group contains, as the name implies, the devices that can be 227 subjected to tests which are the car radios and the machine itself. The elements CAR RADIO228 and TSIM MACHINE represent the two types of devices, the car radio and the machine, 229 respectively. The Electronic Test Drivers group is responsible for the primitive tests of the 230 system, which in this case will be mostly electronic tests, but which can be any type of test 231 as long as they respect the same integration format. Each element of this group must respect 232 the following format:233 EXECUTABLE DRIVER - Provides an executable driver file to run that will contain several 234 primitive tests that can be run and test the Devices Under Test;235 METADATA - Provides a metadata file that contains all the information about the tests 236 that the driver can perform.237 The Self-Diagnosis Tests System group is where the system developed in this work is 238 represented, which will allow users to manage and execute the system tests. This system will 239 be fed with primitive tests from the group of Electronic Test Drivers. The TESTS MANAGEMENT240 element is responsible for loading all the metadata of the primitive tests, available in the 241 METADATA files of the Electronic Test Drivers group, and managing them so that they are 242 saved in the system database and are available for execution.243 The link element with the system database is the OBJECT DATA MODELING that will make 244 the connection and handle queries and transactions to the database, which is the DATABASE245 element.246 This test management is done through the KDT methodology, and the configuration 247 of new test suites made through the developed DSL. The tests will be performed by the 248 BUSINESS LOGIC SERVER element, which will receive the execution orders from the end-user 249 and proceed with the executions. The way to do this is to execute the drivers that are 250 available as executable files. This Server will know which tests are available to execute on 251 each driver since the TESTS MANAGEMENT element has already collected the metadata of all 252 drivers and at that moment made available for execution, all the tests contained therein.253 This entire organization is orchestrated by the Server, which is responsible for the logic of 254 the system and is represented by the element BUSINESS LOGIC SERVER . This Server not only 255 controls all the data and logic of the system but also defines the routes and types of requests 256 that can be made by the Client-side. It defines the services that will be available and this 257 is called an API. The API FRAMEWORK element is responsible for creating and providing a 258 REST API for any client to access, but obviously with the appropriate permissions, also 259 defined by the BUSINESS LOGIC SERVER.260 In this system architecture, USER INTERFACE SERVER represents the Client-side, that is, 261 it is the server responsible for creating the web interface for end-users. It makes HTTP 262 requests specifying the services, through routes, that it wants to access, to obtain the data it 263 needs for its pages. Two types of interfaces are available, the execution interface, represented 264 by the TESTS EXECUTION element, and the test and configuration management interface, 265 represented by the SYSTEM CONFIGURATION element. Each of these interfaces will have its 266 correspondent as a user, which brings us to the last group specified in the architecture, the 267 User Types.268 R. B. Pereira, J. C. Ramalho and M. A. Brito 18:9 This group is represented by the USER TYPES element and represents the different types 269 of users of the final system. The first and most basic type of user is the OPERATOR , that is, 270 the industrial operator who is working and commanding the CPS and performs only the 271 tests or test packages of the system. The second type of user, already more sophisticated, is 272 the TEST MANAGER , who is someone with the responsibility of managing the entire system, 273 using the appropriate interface for that.274 4 Implementation275 This section describes the implementation of the system and its validation. Thus, Section 276 4.1 explains each collection of data maintained in our database. Section 4.2 describes the 277 Backend tier where the system logic is, including the management of the system data and 278 the configuration and execution of the tests. Section 4.3 describes the Frontend tier that 279 contains the user interface and the different features available for each type of user. Finally, 280 Section 4.4 presents the results obtained from the validation performed to ensure the correct 281 functioning of the system.282 4.1 Database283 For the database, MongoDB was used, which is a document database, that is, it stores 284 the data in the form of JSON documents. According to the data that the system needs, 5 285 collections of data have been identified to be stored in the database: Configurations, Tests, 286 Packages, Reports and Schedules.287 The configuration collection contains attributes about some configurations that may differ 288 from machine to machine and are necessary to ensure the correct functioning of the system. 289 The tests collection stores all metadata for the system’s primitive tests. This metadata 290 is provided by those who create and make the primitive tests available, so they are only 291 imported into the system database and updated whenever there are changes. The packages 292 collection stores all metadata for the new test suites that are created in the system from the 293 primitive tests. The reports collection stores all reports of execution of primitive tests or test 294 packages in the system. The schedules collection stores all primitive test executions or test 295 suite executions scheduled for a specific time by the user.296 After specifying the data to be saved in each collection of the system’s database, the next 297 section will explain how the system interacts with the database, through queries, to obtain 298 the data for its operation.299 4.2 Backend300 The Backend is the system tier responsible for managing the database and making the data 301 available to Frontend. Therefore, framed in the MVC architecture, it is the Controller of the 302 system and establishes the connection between the database and the user interfaces, thus 303 guaranteeing the integrity of the data, not allowing other components to access or change 304 them.305 The technology used to develop this server was Node.js combined with Framework Express. 306 This server is organized so that there is a division of the code according to its function, that 307 is, instead of all the code being in one file, it was divided into different files and directories 308 according to its purpose on the server. This will allow the reuse and modularity of the 309 developed code, which will also facilitate its maintenance and understanding in the future.310 Thus, the server structure is as follows:311 SLATE 2021 18:16 Self-diagnosis Tests System Using a DSL for Creating New Test Suites possible to integrate self-diagnosis tests systems into a CPS with a practical and also generic 550 solution that can be integrated with other types of testing systems.551 As future work, it would be interesting to improve the interface for creating new test 552 suites in the system. Although the solution currently implemented is practical and allows 553 good use, it could be even more practical and simple for the user if a drag and drop window 554 were developed in the design of new test suites instead of writing a code script.555 References 556 1 Márcio Filipe Alves Carvalho. Automatização de testes de software, 2010. URL: https:557 //files.isec.pt/DOCUMENTOS/SERVICOS/BIBLIO/teses/Tese_Mest_Marcio-Carvalho.pdf.558 2 S. Ciraci, J. C. Fuller, J. Daily, A. Makhmalbaf, and D. Callahan. A runtime verification 559 framework for control system simulation. In 2014 IEEE 38th Annual Computer Software and 560 Applications Conference, pages 75–84, 2014. doi:10.1109/COMPSAC.2014.14.561 3 Guru99. What is automation testing?, 2021. URL: https://www.guru99.com/562 automation-testing.html.563 4 R. Hametner, D. Winkler, and A. Zoitl. Agile testing concepts based on keyword-driven 564 testing for industrial automation systems. In IECON 2012 - 38th Annual Conference on IEEE 565 Industrial Electronics Society, pages 3727–3732, 2012. doi:10.1109/IECON.2012.6389298.566 5 Felienne Hermans, Martin Pinzger, and Arie Van Deursen. Domain-specific languages in 567 practice: A user study on the success factors. In Lecture Notes in Computer Science (including 568 subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2009. 569 doi:10.1007/978-3-642-04425-0_33.570 6 Jingfan Tang, Xiaohua Cao, and A. Ma. Towards adaptive framework of keyword driven 571 automation testing. In 2008 IEEE International Conference on Automation and Logistics, 572 pages 1631–1636, 2008. doi:10.1109/ICAL.2008.4636415.573 7Tomaž Kosar, Sudev Bohra, and Marjan Mernik. Domain-Specific Languages: A Systematic574 Mapping Study. Information and Software Technology, 2016. doi:10.1016/j.infsof.2015.575 11.001.576 8 Charles W. Krueger. Software Reuse. ACM Computing Surveys (CSUR), 1992. doi:10.1145/577 130844.130856.578 9 Edward A. Lee. Cyber physical systems: Design challenges. In Proceedings - 11th IEEE 579 Symposium on Object/Component/Service-Oriented Real-Time Distributed Computing, ISORC 580 2008, 2008. doi:10.1109/ISORC.2008.25.581 10 Marjan Mernik, Jan Heering, and Anthony M. Sloane. When and how to develop domain- 582 specific languages. ACM Computing Surveys, 2005. doi:10.1145/1118890.1118892.583 11 Jens Palsberg and C. Barry Jay. The essence of the Visitor pattern. In Proceedings - 584 International Computer Software and Applications Conference, 1998. doi:10.1109/CMPSAC.585 1998.716629.586 12 T. J. Parr and R. W. Quong. ANTLR: A predicated-LL(k) parser generator. Software: 587 Practice and Experience, 1995. doi:10.1002/spe.4380250705.588 13 Terence Parr and Kathleen Fisher. LL(*): The foundation of the ANTLR parser generator. 589 In Proceedings of the ACM SIGPLAN Conference on Programming Language Design and 590 Implementation (PLDI), 2011. doi:10.1145/1993498.1993548.591 14 Terence Parr, Sam Harwell, and Kathleen Fisher. Adaptive LL(*) parsing. ACM SIGPLAN 592 Notices, 2014. doi:10.1145/2714064.2660202.593 15 Gabriele Tomassetti. The antlr mega tutorial, 2021. URL: https://tomassetti.me/594 antlr-mega-tutorial/.595 16 X. Zhou, X. Gou, T. Huang, and S. Yang. Review on testing of cyber physical systems: Methods 596 and testbeds. IEEE Access, 6:52179–52194, 2018. doi:10.1109/ACCESS.2018.2869834.597