Exercise 10:

Lexical ANTLR description for the char constants of the C programming language
Such strings contain a character description delimited by single quotes '. The description is either just a character different from ' and \, or is \ followed by either a, b, t, n, v, f, r, \, ', or one, two or three octal digits representing a natural number smaller than 256256 (in decimal, for example '\11' represents 99), or an x followed by one or two hexadecimal digits (uppercase or lowercase, for example '\xA1' represents 161161).
Authors: Guillem Godoy / Documentation:
To be able to submit you need to either log in, register, or become a guest.