aboutsummaryrefslogtreecommitdiff
path: root/src/parser.h
blob: 3c8def9883bd3769c5ab836fd9e2ec2df65ebf1f (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. cmark_strbuf *curline;
  16. int last_line_length;
  17. cmark_strbuf *linebuf;
  18. };
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif