src/Pure/Isar/outer_parse.ML
changeset 5940 33bdc03bba7e
parent 5917 dcb669fda86b
child 5960 2bebd0d0a961
equal deleted inserted replaced
5939:2d7c7a4fcd8a 5940:33bdc03bba7e
   239 
   239 
   240 fun meth4 x =
   240 fun meth4 x =
   241  (position (xname >> rpair []) >> (Method.Source o Args.src) ||
   241  (position (xname >> rpair []) >> (Method.Source o Args.src) ||
   242   $$$ "(" |-- meth0 --| $$$ ")") x
   242   $$$ "(" |-- meth0 --| $$$ ")") x
   243 and meth3 x =
   243 and meth3 x =
   244  (position (xname -- args1 false) >> (Method.Source o Args.src) ||
       
   245   meth4) x
       
   246 and meth2 x =
       
   247  (meth4 --| $$$ "?" >> Method.Try ||
   244  (meth4 --| $$$ "?" >> Method.Try ||
   248   meth4 --| $$$ "*" >> Method.Repeat ||
   245   meth4 --| $$$ "*" >> Method.Repeat ||
   249   meth4 --| $$$ "+" >> Method.Repeat1 ||
   246   meth4 --| $$$ "+" >> Method.Repeat1 ||
       
   247   meth4) x
       
   248 and meth2 x =
       
   249  (position (xname -- args1 false) >> (Method.Source o Args.src) ||
   250   meth3) x
   250   meth3) x
   251 and meth1 x = (enum1 "," meth2 >> (fn [m] => m | ms => Method.Then ms)) x
   251 and meth1 x = (enum1 "," meth2 >> (fn [m] => m | ms => Method.Then ms)) x
   252 and meth0 x = (enum1 "|" meth1 >> (fn [m] => m | ms => Method.Orelse ms)) x;
   252 and meth0 x = (enum1 "|" meth1 >> (fn [m] => m | ms => Method.Orelse ms)) x;
   253 
   253 
   254 val method = meth2;
   254 val method = meth3;
   255 
   255 
   256 
   256 
   257 end;
   257 end;