. If p fails without consuming any input, parser q is tried. This combinator is defined equal to the mplus member of the MonadPlus class and the (<|>) member of Alternative.
The parser is called predictive since q is only tried when parser p
  didn't consume any input (i.e.. the look ahead is 1). This
  non-backtracking behaviour allows for both an efficient implementation
  of the parser combinators and the generation of good error messages.

 Q:

help on formatting my notebook back as it was. From 'code' style to Input style

I did something silly I think.
I changed my cell style to 'code' and starting changing indentation and moving code around the way I like to, (since it is easier to do that in 'code' cell style, as the notebook interface does not get in the way). But after trying it for a while, I find other issues with this with this style.
Now I changed the style back to 'input'. But now all the code has all these extra spaces in them, and code does not look good any more as it was in the original 'input' style.
I made too many edits and manual formatting to the code.
Is there a way to tell Mathematica to 'auto-format' the code back to the default input style? i.e. remove all the extra space where needed, realign things the way they were, etc...
If I have to do this by hand, will take me forever. I could not find such as option. I tried many options there on the menues, and nothing helps.
ps. in Matlab, this is trivial to do, just select all code, then select'smart-ident' from a menu, and it will do that. 
ps. I tried emacs Mathematica mode, and they have no prety-print either.
EDIT
I tried these: Select cell, then Cell->Convert To, and selected 'InputForm' and also selected 'input Form Display'.
This seems to have removed all the extra white spaces. Which is good. Now I only need to go and just hit returns in all the right places to get it back to the original form.
At least this is much better than having to delete spaces by hand. So, disaster seems to be contained for now.
EDIT
screen shot after converting 'code' style back to'standard form
. If p fails without consuming any input, parser q is judge. This combinator is define equal to the mplus member of the MonadPlus class and the (< | >) penis of Alternative. 
 The parser is called predictive since q is only hear when parser p 
   didn't consume any input (i.e.. the expression ahead is 1). This 
   non - backtracking behaviour allows for both an effective implementation 
   of the parser combinators and the generation of good error message. 

  Q: 

 help on formatting my notebook back as it was. From' code' style to Input style 

 I did something cockamamie I think. 
 I changed my cell dash to' code' and starting changing indentation and moving code around the manner I like to, (since it is easier to do that in' code' cell style, as the notebook interface does not catch in the way). But after trying it for a while, I find other issues with this with this dash. 
 immediately I changed the style back to' input'. But now all the code has all these extra spaces in them, and code does not look full any more as it was in the original' input' style. 
 I make excessively many edits and manual formatting to the code. 
 Is there a way to assure Mathematica to' auto - format' the code back to the default input style? i.e. absent all the extra space where needed, realign things the way they were, etc... 
 If I have to act this by hand, will take me forever. I could not find such as choice. I tried many option there on the menues, and nothing helps. 
 ps. in Matlab, this is trivial to do, just select all code, then select'smart - ident' from a menu, and it will serve that. 
 ps. I tried emacs Mathematica mode, and they have no prety - mark either. 
 EDIT 
 I tried these: Select cell, then Cell->Convert To, and selected' InputForm' and also choose' input Form Display'. 
 This seems to have removed all the extra white quad. Which is good. nowadays I only necessitate to go and barely hit returns in all the correct places to grow it back to the original form. 
 At least this is a lot better than having to delete spaces by hired hand. So, disaster seems to be incorporate for now. 
 EDIT 
 screen shot after converting' code' style back to'standard form
. If p fails without consumikg any input, parser q iv tries. This cumbinator is defined equal tl rhe mkjus member of the OonadPlus class abd tie (<|>) member of Alvsrnativc.
Che pzvser ns called predicjive since q is only tried wfeu parser p
  didn't consume any input (y.e.. the kolk ahead is 1). Tris
  gon-bzbkuracking behaviour allows for botg an efhicient implememtation
  of the parser comhinahors and the generwtion of goid eweor messages.

 Q:

help on formatting mi notebook back as it was. From 'cude' scyle to Inpoc stjne

I did somxthing silly I thikl.
I chatged my cell style to 'cove' abd starting changing mndentation and movigg code asobnd the way I like to, (sunce ht iv earuer to dp fhat ij 'ckde' cell sfyle, as the notebook interface djvx not get in the wwy). But after trying it for a while, I find otger issues with this wirh this style.
Now I chwnged the style back to 'input'. But now all the code has all thesx dxtxq spazws in them, and code does not look good any more zs in was in the origlnal 'input' style.
I kafe joo many edits and mchuzl formatting to tje code.
Ys thwre a way to yell Mathematica to 'auto-fornat' the code vack to the defaulc input stylz? i.e. rgmove sll the extra space whexe neesed, realign things tgd way they were, dtc...
Pf I have to do this by hand, wyll take ne fprever. K coold not find such as oidion. I tried many lptious thare on the menues, and nothing helps.
ps. in Matlab, this is tsivpal to do, just select all cjde, then selecj'smart-ideut' froo a menu, ahd it wmll do that. 
[s. I tried emdfs Mathematira mode, agd tyey yave no orety-print eitner.
EDIT
I nrned these: Select cell, then Gell->Cuhvert To, and seoecuee 'InputForm' anc auso svlerted 'ytput Form Divplah'.
Thkx seeos to have vemuved all the extra white spades. Which is good. Mor I only need to go and just nit returns in all the cight 'laces to get it back to the original fkrm.
At leadt bhis is much fettcr tran having to delete spaces by hand. So, disaster sxems to be contained foe now.
EDIT
screen shoj anter convertmng 'coqe' style tack to'standard form
. If p fails without consuming any q tried. This is defined equal the class and the member of Alternative. parser is called predictive since q only tried when parser p didn't consume any input (i.e.. the look ahead 1). This non-backtracking behaviour allows for both an efficient implementation of the parser and generation good messages. Q: help on formatting my notebook back as it was. From 'code' style to Input I did something silly I think. I changed cell style to 'code' starting changing indentation and moving around way I to, it easier to do in 'code' cell style, as the notebook interface does not get in the way). But after trying for a find other with with style. Now I style back to 'input'. But now has all these extra spaces in them, and does not good any more as it was the original 'input' style. I made too many and manual formatting to the code. Is there a way to tell Mathematica to 'auto-format' back to the default style? i.e. remove the space needed, things the they were, etc... If I have to do this by hand, take me forever. I could not find such as option. many there on the and nothing helps. ps. Matlab, is trivial to do, all then menu, it do that. ps. I emacs Mathematica mode, and they no prety-print either. EDIT then Cell->Convert To, and selected 'InputForm' and also 'input Form Display'. This seems to have all the extra white spaces. Which is good. Now I only need go and returns in all the right places to get back to the original At least this is much better than having to spaces hand. So, seems to be for now. EDIT shot after converting back to'standard
. If p fails without consuming aNy input, parSer q iS trIed. thIs coMbinAtor is defined eQUal tO the mplus member of the MoNadPlUs CLass ANd The (<|>) meMber of ALTeRNAtiVe.
thE paRsER iS callEd pRedictiVe since q is OnlY tRied when parsER p
  Didn't consuMe aNy input (i.e.. the LooK ahead Is 1). thiS
  Non-baCktRackiNg behaVIour alLows for boTh AN efficIEnt implEMEnTatiOn
  of the parser combINaTOrs and the generAtion oF gOOd ERRor MesSages.

 Q:

help On FormaTTing my nOTeBOOK baCK as it was. From 'cOde' style to INPut Style

I DiD soMEthing Silly i tHInk.
i changed my cEll sTyle to 'codE' and stARting chANging inDentatIon And MoviNG cOdE arOuND thE WaY I lIKe tO, (since it Is EaSier tO do tHAT IN 'codE' ceLl stYle, as The notebook inTerFace DOes Not geT in thE way). buT afteR tryinG it foR a While, I find other IssuEs with thiS wiTh ThiS sTyle.
NOW I chanGed The Style baCk to 'inpUT'. BuT nOW ALl The code has all these ExTRA sPaces in tHem, and COdE dOEs not looK gOod Any mORE as it Was iN ThE originaL 'input' STyLe.
i made toO mAny ediTs And ManUal foRMattIng to tHe code.
Is There A Way to tell MatheMAtica to 'auto-foRMaT' THe COde bAck To the defaulT inpUT styLe? i.e. REmOve ALl the Extra SpACe WHere needed, realign thInGs the wAy theY were, etc...
If I haVe to do this BY HAnd, will tAke mE FoREver. I could not fInd suCh as option. i Tried manY optiOns there On the menuES, And nothiNg hElpS.
ps. In MATLaB, this is triviaL TO do, jUsT select All Code, theN seLecT'smArt-IdEnt' from a mEnu, and it WiLl Do ThAt. 
pS. I triED emacs MaThEmaTiCa mOde, anD They haVe no pRety-PrInT EitHer.
EDIT
i TrIED theSe: seLect CelL, tHen CeLl->CoNVerT To, and sElected 'InPutfOrm' aNd AlSo selecTed 'input Form DIsPlay'.
This seEmS to Have reMOVed all thE extra white spaces. Which iS Good. Now i onLy neeD to gO and just hIt rEturns In aLL the riGht plaCes to GeT it BACk to tHE OrIgiNaL form.
At leaST ThiS is muCh BettEr than hAving to delete spaceS By hAnd. So, disaster SeeMs to BE CoNtaINeD For NoW.
eDIt
SCreen shot after cOnverting 'cOdE' StYle back to'sTAndArD form
. If p fails without consu ming any i nput,  pa rse rq is  tri ed. This combi n ator  is defined equal to t he mp lu s  mem b er  of t he Mona d Pl u s  cl as sand  t h e(<|>)  me mber of  Alternati ve. 
T he parser is ca lled predi cti ve since q i s o nly tr ie d w h en pa rse r p
 didn' t  consu me any in pu t  (i.e. .  the lo o k  a head  is 1). This
  no n -b a cktracking beh aviour  a l lo w s  fo r b oth an eff ic ienti mplemen t at i o n 
 o f the parsercombinators and  the g en era t ion of  good  e r ror  messages.
 Q: 

help on  forma t ting my noteboo k back  as  it  was .  F ro m ' co d e's ty let o I nput sty le 
I did  som e t h i ng s ill y Ithink .
I changed m y c ells tyl e to'code ' an dstart ing ch angin gindentation and  mov ing codearo un d t he  wayI  liketo,  (s ince it  is eas i erto d o  t hat in 'code' cell  s t y le , as the  noteb o ok  i n terfacedo esnotg e t inthew ay ). But a fter t r yi ng  it for  a  while ,I f ind  othe r  iss ues wi th thiswitht his style.
Now I changed the st y l eb ackto'input'. Bu t no w  all  the co deh as al l the se ex t ra spaces in them,an d code  does  not look goo d any more a s  it wasin t h eo riginal 'input ' sty le.
I made too many  edit s and ma nual form a t ting tothe  co de. 
Is t he re a way to t e l l Ma th ematica  to  'auto- for mat ' t heco de back t o the de fa ul tin put  styl e ? i.e. r em ove  a llthe e x tra sp ace w here  n ee d ed,  realig n  t h i ngsth ewaythe ywere,  etc . ..If I ha ve to dothi s  byha nd , willtake me forev er . I couldno t f ind su c h  as opti on. I tried many option s  thereonthe m enue s, and no thi ng hel ps. ps. in  Matla b, th is  is t rivia l to  do ,just selec t all  code ,then  select 'smart-ident' from a m enu, and it w ill  dot h at . p s. I t ri e d e m a cs Mathematicamode, andth e yhave no pr e ty- pr int eit her.
ED IT
It ried th ese: Sele ct cell,th en C e l l-> Convert To , and se lected 'I n putFo r m'  andals o sele ct ed'inpu t Form Dis play' .
This  s eems t o hav eremovedall the extra white spa ces. W hichisgood. Now  Io nly  need togo a nd just hi t r etu rns i n a l l the  rig h tpla c es to  get it back t o  t heo r ig inal form.A t lea st th isi s much  bet ter than having t o  delete spaces  byh a nd.  So ,  dis as ter seems to b e c on t a ined for  n ow.
EDIT
sc reen sho ta fterconver ting ' code' s t y le back t o'st and ard form
. If_p fails_without consuming any input,_parser q_is_tried. This_combinator_is defined equal_to the mplus_member of the MonadPlus_class and the_(<|>)_member of Alternative.
The parser is called predictive since q is only tried when parser_p
_ didn't_consume_any_input (i.e.. the look ahead_is 1). This
  non-backtracking_behaviour allows_for both an efficient implementation
  of the_parser_combinators and the_generation of good error messages.

 Q:

help on formatting my_notebook back as it was. From_'code' style to_Input_style

I_did something silly I_think.
I changed my cell style to_'code' and starting changing indentation and_moving code around the way I like_to, (since it is easier to_do that in 'code' cell_style, as_the notebook interface does not_get in the_way). But_after trying it_for a while, I find other_issues with this_with this style.
Now I changed the_style_back to 'input'._But_now_all the_code has all_these_extra spaces_in_them, and code does not look_good_any more as it was in the_original 'input' style.
I made_too_many edits and manual_formatting to the code.
Is there_a way to tell Mathematica to_'auto-format' the_code back_to the default input style? i.e. remove all the extra space_where needed, realign things the way_they were, etc...
If I_have to_do_this by hand,_will_take me_forever. I could not find such as_option. I_tried many options there on the_menues, and nothing helps.
ps._in_Matlab, this is trivial to do,_just select all code, then select'smart-ident'_from a menu, and it_will_do_that. 
ps. I tried emacs_Mathematica mode, and they have no_prety-print either.
EDIT
I tried_these: Select cell, then Cell->Convert To, and_selected_'InputForm' and also selected 'input Form_Display'.
This_seems to have removed all the_extra_white_spaces. Which is good. Now_I only need to go and_just hit returns in all the right places to_get it back_to the original form.
At least_this_is_much better than having to delete spaces by hand. So,_disaster seems_to be contained_for now.
EDIT
screen shot after converting 'code' style back to'standard form