Skip to main content

Exercise Generation on Language Specification

  • Conference paper
  • First Online:
Recent Advances in Information Systems and Technologies (WorldCIST 2017)

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 569))

Included in the following conference series:

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).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The same knowledge is important for applied linguistics and other related areas.

  2. 2.

    In general practical situations \(2\times 2\)-matrices proved to be sufficient.

References

  1. Aho, A.V., Sethi, R., Ullman, J.D.: Compilers: Principles, Techniques, and Tools. Addison-Wesley Longman Publishing Co., Inc., Boston (1986)

    MATH  Google Scholar 

  2. 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)

    Google Scholar 

  3. 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)

    Google Scholar 

  4. 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

    Chapter  Google Scholar 

  5. Donnelly, C., Stallman, R.: Bison: the YACC-compatible parser generator. Technical report, GNU (2004)

    Google Scholar 

  6. Eisenbach, A.: phpSyntaxTree - drawing syntax trees made easy, Tool page (2015). http://ironcreek.net/phpsyntaxtree/

  7. Hasebe, Y.: RSyntaxTree - yet another syntax tree generator made with ruby and RMagick, Tool page (2016). http://yohasebe.com/rsyntaxtree/

  8. 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

  9. José Neto, J.: Introdução à compilação. Livros Técnicos e Científicos, Rio de Janeiro (2016)

    Google Scholar 

  10. Salomaa, A.: Formal Languages. Academic Press, New York (1973)

    MATH  Google Scholar 

  11. Salomaa, A., Soittola, M.: Automata-Theoretic Aspects of Formal Power Series. Springer, New York (1978)

    Book  MATH  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to J. João Almeida .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics