Abstract
Exercise generation on language specification is a challenging problem, because of the richness of the objects in the domain. In this paper we discuss Mgbeg (Meta-Grammar-Based Exercise Generator) – a toolkit for exercise generation on context-free languages. Mgbeg approach is based on a meta-grammar formalism and tool, used to define a set of similar exercises. Mgbeg is simple attributed grammar used to describe the set of valid exercise (and randomly generate one of them). Each exercise typically contains several attributes calculated during the generation steps: namely, one or more formal specification of the language (context free grammar); the exercise statement; other information such as examples, common mistakes, validation data, to be used in the construction of the exercise statement, solution, and assessment steps. Complementary the toolkit provides a grammar module, with functionality for grammar comparison, sentence generation and recognition; a template engine (to help in textual attributes calculation).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
The same knowledge is important for applied linguistics and other related areas.
- 2.
In general practical situations \(2\times 2\)-matrices proved to be sufficient.
References
Aho, A.V., Sethi, R., Ullman, J.D.: Compilers: Principles, Techniques, and Tools. Addison-Wesley Longman Publishing Co., Inc., Boston (1986)
Almeida, J., Araújo, I., Brito, I., Carvalho, N., Machado, G.J., Pereira, R.M., Smirnov, G.: Math exercise generation and smart assessment. In: Workshop of TICAMES (Information and Communication Technology in Higher Education: Learning Mathematics), CISTI-2013, pp. 1014–1019 (2013)
Almeida, J.J., Grande, E., Smirnov, G.: Context-free grammars: exercise generation and probabilistic assessment. In: 5th Symposium on Languages, Applications and Technologies (SLATE 2016), OpenAccess Series in Informatics (OASIcs), vol. 51, pp. 1–8. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik (2016)
Cousot, P., Cousot, R.: Grammar analysis and parsing by abstract interpretation. In: Reps, T., Sagiv, M., Bauer, J. (eds.) Program Analysis and Compilation, Theory and Practice. LNCS, vol. 4444, pp. 175–200. Springer, Heidelberg (2007). doi:10.1007/978-3-540-71322-7_9
Donnelly, C., Stallman, R.: Bison: the YACC-compatible parser generator. Technical report, GNU (2004)
Eisenbach, A.: phpSyntaxTree - drawing syntax trees made easy, Tool page (2015). http://ironcreek.net/phpsyntaxtree/
Hasebe, Y.: RSyntaxTree - yet another syntax tree generator made with ruby and RMagick, Tool page (2016). http://yohasebe.com/rsyntaxtree/
Jackson, Q.T.: Disambiguation as a quantifiable computational process. Technical report 3 (2000). https://www.researchgate.net/publication/2401401_Disambiguation_as_a_Quantifiable_Computational_Process
José Neto, J.: Introdução à compilação. Livros Técnicos e Científicos, Rio de Janeiro (2016)
Salomaa, A.: Formal Languages. Academic Press, New York (1973)
Salomaa, A., Soittola, M.: Automata-Theoretic Aspects of Formal Power Series. Springer, New York (1978)
Acknowledgments
The work of Eliana Grande was supported by PIQ IF Goiano through the fellowship no. 02/2013. The work of J.J. Almeida was supported by COMPETE: POCI-01-0145-FEDER-007043 and FCT – Fundação para a Ciência e Tecnologia within the Project Scope: UID/CEC/00319/2013.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Almeida, J.J., Grande, E., Smirnov, G. (2017). Exercise Generation on Language Specification. In: Rocha, Á., Correia, A., Adeli, H., Reis, L., Costanzo, S. (eds) Recent Advances in Information Systems and Technologies. WorldCIST 2017. Advances in Intelligent Systems and Computing, vol 569. Springer, Cham. https://doi.org/10.1007/978-3-319-56535-4_28
Download citation
DOI: https://doi.org/10.1007/978-3-319-56535-4_28
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-56534-7
Online ISBN: 978-3-319-56535-4
eBook Packages: EngineeringEngineering (R0)