package hardcaml_xilinx_components

  1. Overview
  2. Docs
Hardcaml Xilinx component definitions

Install

Dune Dependency

Authors

Maintainers

Sources

hardcaml_xilinx_components-v0.16.0.tar.gz
sha256=51f52de39bacae0026b61e8d419940718d7e2281e1ecbec1ee3240ae6fe62ad8

doc/src/hardcaml_xilinx_components.xilinx_vhdl/parse.ml.html

Source file parse.ml

1
2
3
4
5
6
7
8
9
10
open! Import

let parse lexbuf =
  Lexer.init_linenum ();
  match Parser.main Lexer.token lexbuf with
  | x -> Ok x
  | exception _ -> error_s [%message "parse error" ~at_line:(!Lexer.lineNum : int)]

let parse_string     string     = parse (Lexing.from_string  string)
let parse_in_channel in_channel = parse (Lexing.from_channel in_channel)
OCaml

Innovation. Community. Security.