A generic version of scanf programmed in C5
Resumen:
In this paper we present a generic version of \{\\tt scanf\} the standard library function of the C language programmed in C5. C5 is a superset of the C programming language. The main difference between C and C5 is that the type system of C5 supports the definition of types of dependent pairs, i.e., the type of the second member of the pair depends on the value of the first member (which is a type). Another C5 extension is the type initialization expression which is a sequence of C constant expressions that can be attached to type expressions in a type declaration. These extensions make C5 powerful enough to express in a generic form functions with dependent type arguments like and \{\\tt printf\} and \{\\tt scanf\}. The resulting version of \{\\tt scanf\} is a parser generator based on the Earley algorithm that for a given type constructs an object of such type according to the input string.
2004 | |
Dynamic Typing Dependent Pair Type Generic Programming Earley algorithm |
|
Universidad de la República | |
COLIBRI | |
http://hdl.handle.net/20.500.12008/3501 | |
Acceso abierto | |
Licencia Creative Commons Atribución – No Comercial – Sin Derivadas (CC BY-NC-ND 4.0) |
_version_ | 1807522943919456256 |
---|---|
author | Cabezas, Juan José |
author_facet | Cabezas, Juan José |
author_role | author |
bitstream.checksum.fl_str_mv | 528b6a3c8c7d0c6e28129d576e989607 9833653f73f7853880c94a6fead477b1 4afdbb8c545fd630ea7db775da747b2f 9da0b6dfac957114c6a7714714b86306 6497ce69cfb7aad85af32f95d8c6bbeb |
bitstream.checksumAlgorithm.fl_str_mv | MD5 MD5 MD5 MD5 MD5 |
bitstream.url.fl_str_mv | http://localhost:8080/xmlui/bitstream/20.500.12008/3501/5/license.txt http://localhost:8080/xmlui/bitstream/20.500.12008/3501/2/license_text http://localhost:8080/xmlui/bitstream/20.500.12008/3501/3/license_url http://localhost:8080/xmlui/bitstream/20.500.12008/3501/4/license_rdf http://localhost:8080/xmlui/bitstream/20.500.12008/3501/1/TR0405.pdf |
collection | COLIBRI |
dc.creator.none.fl_str_mv | Cabezas, Juan José |
dc.date.accessioned.none.fl_str_mv | 2014-12-02T16:07:04Z |
dc.date.available.none.fl_str_mv | 2014-12-02T16:07:04Z |
dc.date.issued.es.fl_str_mv | 2004 |
dc.date.submitted.es.fl_str_mv | 20141202 |
dc.description.abstract.none.fl_txt_mv | In this paper we present a generic version of \{\\tt scanf\} the standard library function of the C language programmed in C5. C5 is a superset of the C programming language. The main difference between C and C5 is that the type system of C5 supports the definition of types of dependent pairs, i.e., the type of the second member of the pair depends on the value of the first member (which is a type). Another C5 extension is the type initialization expression which is a sequence of C constant expressions that can be attached to type expressions in a type declaration. These extensions make C5 powerful enough to express in a generic form functions with dependent type arguments like and \{\\tt printf\} and \{\\tt scanf\}. The resulting version of \{\\tt scanf\} is a parser generator based on the Earley algorithm that for a given type constructs an object of such type according to the input string. |
dc.format.mimetype.es.fl_str_mv | application/pdf |
dc.identifier.citation.es.fl_str_mv | CABEZAS, J. "A generic version of scanf programmed in C5". Reportes Técnicos 04-05. UR. FI – INCO, 2004. |
dc.identifier.issn.es.fl_str_mv | 0797-6410 |
dc.identifier.uri.none.fl_str_mv | http://hdl.handle.net/20.500.12008/3501 |
dc.language.iso.none.fl_str_mv | in |
dc.publisher.es.fl_str_mv | UR. FI – INCO. |
dc.relation.ispartof.es.fl_str_mv | Reportes Técnicos 04-05 |
dc.rights.license.none.fl_str_mv | Licencia Creative Commons Atribución – No Comercial – Sin Derivadas (CC BY-NC-ND 4.0) |
dc.rights.none.fl_str_mv | info:eu-repo/semantics/openAccess |
dc.source.none.fl_str_mv | reponame:COLIBRI instname:Universidad de la República instacron:Universidad de la República |
dc.subject.es.fl_str_mv | Dynamic Typing Dependent Pair Type Generic Programming Earley algorithm |
dc.title.none.fl_str_mv | A generic version of scanf programmed in C5 |
dc.type.es.fl_str_mv | Reporte técnico |
dc.type.none.fl_str_mv | info:eu-repo/semantics/report |
dc.type.version.none.fl_str_mv | info:eu-repo/semantics/publishedVersion |
description | In this paper we present a generic version of \{\\tt scanf\} the standard library function of the C language programmed in C5. C5 is a superset of the C programming language. The main difference between C and C5 is that the type system of C5 supports the definition of types of dependent pairs, i.e., the type of the second member of the pair depends on the value of the first member (which is a type). Another C5 extension is the type initialization expression which is a sequence of C constant expressions that can be attached to type expressions in a type declaration. These extensions make C5 powerful enough to express in a generic form functions with dependent type arguments like and \{\\tt printf\} and \{\\tt scanf\}. The resulting version of \{\\tt scanf\} is a parser generator based on the Earley algorithm that for a given type constructs an object of such type according to the input string. |
eu_rights_str_mv | openAccess |
format | report |
id | COLIBRI_851802a1b0371e4118ab06fd3d01a114 |
identifier_str_mv | CABEZAS, J. "A generic version of scanf programmed in C5". Reportes Técnicos 04-05. UR. FI – INCO, 2004. 0797-6410 |
instacron_str | Universidad de la República |
institution | Universidad de la República |
instname_str | Universidad de la República |
language_invalid_str_mv | in |
network_acronym_str | COLIBRI |
network_name_str | COLIBRI |
oai_identifier_str | oai:colibri.udelar.edu.uy:20.500.12008/3501 |
publishDate | 2004 |
reponame_str | COLIBRI |
repository.mail.fl_str_mv | mabel.seroubian@seciu.edu.uy |
repository.name.fl_str_mv | COLIBRI - Universidad de la República |
repository_id_str | 4771 |
rights_invalid_str_mv | Licencia Creative Commons Atribución – No Comercial – Sin Derivadas (CC BY-NC-ND 4.0) |
spelling | 2014-12-02T16:07:04Z2014-12-02T16:07:04Z200420141202CABEZAS, J. "A generic version of scanf programmed in C5". Reportes Técnicos 04-05. UR. FI – INCO, 2004.0797-6410http://hdl.handle.net/20.500.12008/3501In this paper we present a generic version of \{\\tt scanf\} the standard library function of the C language programmed in C5. C5 is a superset of the C programming language. The main difference between C and C5 is that the type system of C5 supports the definition of types of dependent pairs, i.e., the type of the second member of the pair depends on the value of the first member (which is a type). Another C5 extension is the type initialization expression which is a sequence of C constant expressions that can be attached to type expressions in a type declaration. These extensions make C5 powerful enough to express in a generic form functions with dependent type arguments like and \{\\tt printf\} and \{\\tt scanf\}. The resulting version of \{\\tt scanf\} is a parser generator based on the Earley algorithm that for a given type constructs an object of such type according to the input string.Made available in DSpace on 2014-12-02T16:07:04Z (GMT). No. of bitstreams: 5 TR0405.pdf: 201924 bytes, checksum: 6497ce69cfb7aad85af32f95d8c6bbeb (MD5) license_text: 21936 bytes, checksum: 9833653f73f7853880c94a6fead477b1 (MD5) license_url: 49 bytes, checksum: 4afdbb8c545fd630ea7db775da747b2f (MD5) license_rdf: 23148 bytes, checksum: 9da0b6dfac957114c6a7714714b86306 (MD5) license.txt: 4244 bytes, checksum: 528b6a3c8c7d0c6e28129d576e989607 (MD5) Previous issue date: 2004application/pdfinUR. FI – INCO.Reportes Técnicos 04-05Las obras depositadas en el Repositorio se rigen por la Ordenanza de los Derechos de la Propiedad Intelectual de la Universidad De La República. (Res. Nº 91 de C.D.C. de 8/III/1994 – D.O. 7/IV/1994) y por la Ordenanza del Repositorio Abierto de la Universidad de la República (Res. Nº 16 de C.D.C. de 07/10/2014)info:eu-repo/semantics/openAccessLicencia Creative Commons Atribución – No Comercial – Sin Derivadas (CC BY-NC-ND 4.0)Dynamic TypingDependent Pair TypeGeneric ProgrammingEarley algorithmA generic version of scanf programmed in C5Reporte técnicoinfo:eu-repo/semantics/reportinfo:eu-repo/semantics/publishedVersionreponame:COLIBRIinstname:Universidad de la Repúblicainstacron:Universidad de la RepúblicaCabezas, Juan JoséLICENSElicense.txttext/plain4244http://localhost:8080/xmlui/bitstream/20.500.12008/3501/5/license.txt528b6a3c8c7d0c6e28129d576e989607MD55CC-LICENSElicense_textapplication/octet-stream21936http://localhost:8080/xmlui/bitstream/20.500.12008/3501/2/license_text9833653f73f7853880c94a6fead477b1MD52license_urlapplication/octet-stream49http://localhost:8080/xmlui/bitstream/20.500.12008/3501/3/license_url4afdbb8c545fd630ea7db775da747b2fMD53license_rdfapplication/octet-stream23148http://localhost:8080/xmlui/bitstream/20.500.12008/3501/4/license_rdf9da0b6dfac957114c6a7714714b86306MD54ORIGINALTR0405.pdfapplication/pdf201924http://localhost:8080/xmlui/bitstream/20.500.12008/3501/1/TR0405.pdf6497ce69cfb7aad85af32f95d8c6bbebMD5120.500.12008/35012014-12-02 14:07:04.364oai:colibri.udelar.edu.uy:20.500.12008/3501VGVybWlub3MgeSBjb25kaWNpb25lcyByZWxhdGl2YXMgYWwgZGVwb3NpdG8gZGUg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Np77+9biwgcHVibGljYWNp77+9biwgZGlzdHJpYnVjae+/vW4geSBwdWVzdGEgYSBkaXNwb3NpY2nvv71uIGRlbCBw77+9YmxpY28uIExhIGNyZWFjae+/vW4gZGUgb2JyYXMgZGVyaXZhZGFzIGluY2x1eWUgbGEgYWRhcHRhY2nvv71uLCB0cmFkdWNjae+/vW4geSBlbCByZW1peC4NCg0KQ3VhbmRvIHNlIHNlbGVjY2lvbmUgdW5hIGxpY2VuY2lhIHF1ZSBoYWJpbGl0ZSB1c29zIGNvbWVyY2lhbGVzLCBlbCBkZXDvv71zaXRvIGRlYmVy77+9IHNlciBhY29tcGHvv71hZG8gZGVsIGF2YWwgZGVsIGplcmFyY2Egbe+/vXhpbW8gZGVsIFNlcnZpY2lvIGNvcnJlc3BvbmRpZW50ZS4NCg0KDQoNCg0KDQoNCg0KDQo=Universidadhttps://udelar.edu.uy/https://www.colibri.udelar.edu.uy/oai/requestmabel.seroubian@seciu.edu.uyUruguayopendoar:47712024-07-25T14:33:58.121173COLIBRI - Universidad de la Repúblicafalse |
spellingShingle | A generic version of scanf programmed in C5 Cabezas, Juan José Dynamic Typing Dependent Pair Type Generic Programming Earley algorithm |
status_str | publishedVersion |
title | A generic version of scanf programmed in C5 |
title_full | A generic version of scanf programmed in C5 |
title_fullStr | A generic version of scanf programmed in C5 |
title_full_unstemmed | A generic version of scanf programmed in C5 |
title_short | A generic version of scanf programmed in C5 |
title_sort | A generic version of scanf programmed in C5 |
topic | Dynamic Typing Dependent Pair Type Generic Programming Earley algorithm |
url | http://hdl.handle.net/20.500.12008/3501 |