[erlang-questions] parsing radius detail file with time stamp

Torbjorn Tornkvist tobbe@REDACTED
Wed Jun 13 12:34:08 CEST 2007


jm wrote:
> I'm attempting to parse a radius detail file using yecc. It seems that
> leex is not widely available leading to manually writing a scanner.
> Having not done much with parse at this level before I would like to
> avoid manually writing anything to do with parsing a little longer. Does
> anyone have any suggestions on how to parse a file, using yecc or any
> other method, which looks like this?
> 
> Fri Dec  5 18:32:09 2000
>         Acct-Session-Id = "2193976896017"
>         User-Name = "e2"
>         Acct-Status-Type = Stop
>         Acct-Authentic = RADIUS
>         Acct-Output-Octets = 5382
>         Acct-Input-Octets = 7761
>         Service-Type = Framed-User
>         Framed-Protocol = PPP
>         Framed-IP-Address = 11.10.10.125
>         Acct-Session-Time = 1905
>         NAS-IP-Address = 11.10.10.11
>         NAS-Port-Id = 8
>         Acct-Delay-Time = 0
>         Timestamp = 976897929
>         Request-Authenticator = Unverified
> 
> 

Some links that may be of help:

http://www.erlang.org/user.html#parser_tutorial-1.0
http://spamfreeemail.com/erlang/127/yecc-leex-and-imap/

--Tobbe




More information about the erlang-questions mailing list