Re: Grammar for ls -l output

Sure!


{ls -l}
directory: total, entry*.

@total: -"total", s, n, -#a.
-s: -" "+.

entry: props, links, user, group, size, date, name, -#a.

props: ["dlrwx-s"]+, s.

links: n, s.

user: id.
group: id.
-id: ~[" "]+, s.

size: n, s.

date: month, day, (year; time), s.
month: L, l, l, s.
-L: ["A"-"Z"].
-l: ["a"-"z"].

day: n, s.
year: n.
time: h, -":", m.
h: n.
m: n.

-n: ["0"-"9"]+.
@name: ~[#a]+.


On Thursday 08 January 2026 16:54:40 (+01:00), Peter Flynn wrote:

 > Before I spend any non-trivial amount of time on this, has anyone done 
an ixml grammar for the output of the "ls -l" command (with or without 
optional bells and whistles)?
 > 
 > Peter
 > 
 > 

Received on Thursday, 8 January 2026 20:28:13 UTC