aboutsummaryrefslogtreecommitdiff
path: root/src/parser.h
blob: 1f63d9cf5302ef19ef06f1d87f052f8f5d8143af (plain)
  1. #ifndef CMARK_AST_H
  2. #define CMARK_AST_H
  3. #include <stdio.h>
  4. #include "node.h"
  5. #include "buffer.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. #define MAX_LINK_LABEL_LENGTH 1000
  10. struct cmark_parser {
  11. struct cmark_reference_map *refmap;
  12. struct cmark_node* root;
  13. struct cmark_node* current;
  14. int line_number;
  15. strbuf *curline;
  16. strbuf *linebuf;
  17. };
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif