MCPcopy Create free account
hub / github.com/PRQL/prql / param

Function param

prqlc/prqlc-parser/src/lexer/mod.rs:213–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211}
212
213fn param<'a>() -> impl Parser<'a, ParserInput<'a>, TokenKind, ParserError<'a>> {
214 just('$')
215 .ignore_then(
216 any()
217 .filter(|c: &char| c.is_alphanumeric() || *c == '_' || *c == '.')
218 .repeated()
219 .to_slice()
220 .map(|s: &str| s.to_string()),
221 )
222 .map(TokenKind::Param)
223}
224
225fn interpolation<'a>() -> impl Parser<'a, ParserInput<'a>, TokenKind, ParserError<'a>> {
226 // For s-strings and f-strings, use the same multi-quote string parser

Callers 1

tokenFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected