package hardcaml_xilinx_components

  1. Overview
  2. Docs
Hardcaml Xilinx component definitions

Install

Dune Dependency

Authors

Maintainers

Sources

hardcaml_xilinx_components-v0.15.0.tar.gz
sha256=1cf266f90fec2ec7d6053289f4aa9b753d233b29ddc0c9be1e7d19b97b75f3f8

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.