2018-01-07 19:46:10 +01:00
|
|
|
use super::*;
|
|
|
|
|
|
|
|
pub(super) fn literal(p: &mut Parser) -> bool {
|
2018-01-08 20:40:14 +01:00
|
|
|
let literals = [
|
|
|
|
TRUE_KW, FALSE_KW,
|
|
|
|
INT_NUMBER, FLOAT_NUMBER,
|
|
|
|
BYTE, CHAR,
|
|
|
|
STRING, RAW_STRING, BYTE_STRING, RAW_BYTE_STRING,
|
|
|
|
];
|
|
|
|
node_if(p, AnyOf(&literals), LITERAL, |_| ())
|
2018-01-07 19:46:10 +01:00
|
|
|
}
|