Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1.  //  Begin grammar
  2.  
  3.            (
  4.                     -(*(char_ - lit("://")) >> lit("://")) >>
  5.                     (
  6.                             // : means we are going to append a port number. / is the beginning of the path
  7.                             +(char_ - ':' - '/') >>
  8.  
  9.                             //Port number - optional
  10.                             -(':' >> int_) >>
  11.  
  12.                             //path
  13.                             -('/' >> +(char_))
  14.  
  15.                     )
  16.         ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement