(ocamllex LexToken)

(menhir
 (merge_into Parser)
 (modules ParToken Parser)
 (flags -la 1 --table --explain --strict --external-tokens LexToken))

(library
 (name parser_reasonligo)
 (public_name ligo.parser.reasonligo)
 (modules SyntaxError reasonligo LexToken Parser)
 (libraries
   menhirLib
   parser_shared
   parser_cameligo
   str
   simple-utils
   tezos-utils
   getopt)
 (flags (:standard -open Simple_utils -open Parser_shared -open Parser_cameligo)))

(executable
  (name LexerMain)
  (libraries
   parser_reasonligo)
  (modules
    LexerMain)
  (flags (:standard -open Parser_shared -open Parser_reasonligo)))

(executable
  (name ParserMain)
  (libraries
   parser_reasonligo
   parser_cameligo)
  (modules
    ParserAPI
    ParserMain)
  (flags (:standard -open Simple_utils -open Parser_cameligo -open Parser_shared -open Parser_reasonligo)))