From 5dfd62b7565bb4a72c032e57d69ef114b91fad13 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 29 Mar 2024 13:52:16 -0400 Subject: [PATCH] Add D example to user guide for p_context_init() - close #16 --- doc/user_guide.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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.