diff --git a/doc/user_guide.md b/doc/user_guide.md index 970090a..cf539cb 100644 --- a/doc/user_guide.md +++ b/doc/user_guide.md @@ -646,13 +646,20 @@ structure. The input to be used for lexing/parsing is passed in when initializing the context structure. -Example: +C example: ``` p_context_t context; p_context_init(&context, input, input_length); ``` +D example: + +``` +p_context_t context; +p_context_init(&context, input); +``` + ### `p_parse` The `p_parse()` function is the main entry point to the parser.