nmis-parser: NMIS file parser

[ bsd3, library, parsers, text ] [ Propose Tags ] [ Report a vulnerability ]

Parser for NMIS (Network Management Information System) files to record type. Main module to use is Text.Nmis and parseNmis function


[Skip to Readme]

Modules

[Last Documentation]

  • Text
    • Internal
      • Text.Internal.Helper
      • Text.Internal.NmisTypes
    • Text.Nmis

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2
Dependencies base (>=4.7 && <5), containers, megaparsec (<5.3.2) [details]
License BSD-3-Clause
Copyright 2017 Sasa Bogicevic
Author Sasa Bogicevic
Maintainer t4nt0r@pm.me
Category Text, Parsers
Home page https://github.com/v0d1ch/nmis-parser#readme
Source repo head: git clone https://github.com/v0d1ch/nmis-parser
Uploaded by v0d1ch at 2018-11-21T15:40:48Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1922 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2018-11-21 [all 2 reports]

Readme for nmis-parser-0.1.0.2

[back to package description]

NMIS file parser

  • NMIS stands for Network Management Information System

This parser parses the NMIS format files to Nmis record type

Example usage :

  module Main where
  import System.Environment (getArgs)
  import System.IO
  import Text.Megaparsec
  import Text.Nmis

main :: IO ()
main = getArgs >>= parseArgs
  where
    parseArgs [] = putStrLn "error: you need to pass in the file path"
    parseArgs (path:_) = do
      contents <- readFile path
      either (print . parseErrorPretty) print (parse parseNmis "" contents)