[Macro] Implement the parse_*
fn generation macro #909
Closed
Description
Background
Currently, we defined parse_*
fn separately, which shows similar pattern; 1) tokenize 2) parse tokens with specific sql-parser fn.
By introducing new decl macro which takes fn_name
, parse_fn_name
, output type
as args, parse_*
functions can be easily generated.
Lines 41 to 59 in 10824e0
TODO
- impl parse_* macro
- replace code blocks with macro