H
h03Ein
Hi!
during my search on tokens in ANSI C I have found following
specification for string literals based on regular expression in
site http://www.lysator.liu.se/c/ANSI-C-grammar-l.html :
L?\"(\\.|[^\\"])*\" which L stands for [a-zA-Z_] . can anyone explain
what does it mean ? I know regex but I can't understand this
specification. why L? . does it mean following input is correct:
s"\a" for string literals. or what's exactly (\\.|[^\\"]) means. and
so on...
Thanks!
during my search on tokens in ANSI C I have found following
specification for string literals based on regular expression in
site http://www.lysator.liu.se/c/ANSI-C-grammar-l.html :
L?\"(\\.|[^\\"])*\" which L stands for [a-zA-Z_] . can anyone explain
what does it mean ? I know regex but I can't understand this
specification. why L? . does it mean following input is correct:
s"\a" for string literals. or what's exactly (\\.|[^\\"]) means. and
so on...
Thanks!