Handbook
Glossary
parse-directive ( preprocessor-state sequence-parser string -- )
Vocabulary
c
.
preprocessor
Inputs
preprocessor-state
an
object
sequence-parser
an
object
string
an
object
Outputs
None
Definition
USING:
combinators
;
IN:
c.preprocessor
:
parse-directive
( preprocessor-state sequence-parser string -- )
{
{
"warning"
[
handle-warning
]
}
{
"error"
[
handle-error
]
}
{
"include"
[
handle-include
]
}
{
"define"
[
handle-define
]
}
{
"undef"
[
handle-undef
]
}
{
"ifdef"
[
handle-ifdef
]
}
{
"ifndef"
[
handle-ifndef
]
}
{
"endif"
[
handle-endif
]
}
{
"if"
[
handle-if
]
}
{
"elif"
[
handle-elif
]
}
{
"else"
[
handle-else
]
}
{
"pragma"
[
handle-pragma
]
}
{
"include_next"
[
handle-include-next
]
}
[
unknown-c-preprocessor
]
}
case
;