mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
c3.l grammar fixed.
This commit is contained in:
@@ -29,7 +29,7 @@ HINT {H}(_?{H})*
|
|||||||
OINT {O}(_?{O})*
|
OINT {O}(_?{O})*
|
||||||
BINT {B}(_?{B})*
|
BINT {B}(_?{B})*
|
||||||
|
|
||||||
%x COMMENT RAW_STRING
|
%x COMMENT CONTRACT_DOC RAW_STRING
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -105,6 +105,12 @@ typedef struct {
|
|||||||
[/] { }
|
[/] { }
|
||||||
\n { }
|
\n { }
|
||||||
}
|
}
|
||||||
|
"<*" { BEGIN(CONTRACT_DOC); }
|
||||||
|
<CONTRACT_DOC>{
|
||||||
|
"*>" { BEGIN(INITIAL); }
|
||||||
|
"*" { }
|
||||||
|
[^*]+ { }
|
||||||
|
}
|
||||||
\/\/.* { }
|
\/\/.* { }
|
||||||
"any" { return(ANY); }
|
"any" { return(ANY); }
|
||||||
"anyfault" { return(ANYFAULT); }
|
"anyfault" { return(ANYFAULT); }
|
||||||
|
|||||||
Reference in New Issue
Block a user