Skip to content

Commit

Permalink
Left-factor grammar for domains (#647)
Browse files Browse the repository at this point in the history
These rules should be equivalent but more amenable to
recursive descent parsers and bulk parsing operators
  • Loading branch information
Gabriella439 committed Jul 20, 2019
1 parent 5ca75a9 commit 40fce66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions standard/dhall.abnf
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,9 @@ dec-octet = "25" %x30-35 ; 250-255

; Look in RFC3986 3.2.2 for
; "A registered name intended for lookup in the DNS"
domain = *(domainlabel ".") domainlabel [ "." ]
domain = domainlabel *("." domainlabel) [ "." ]

domainlabel = ALPHANUM *(((ALPHANUM / 1*"-") ALPHANUM) / ALPHANUM)
domainlabel = 1*ALPHANUM *(1*"-" 1*ALPHANUM)

segment = *pchar

Expand Down

0 comments on commit 40fce66

Please sign in to comment.