1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556(* Yoann Padioleau
*
* Copyright (C) 2014 Facebook
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL)
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* file license.txt for more details.
*)(*****************************************************************************)(* Prelude *)(*****************************************************************************)(*****************************************************************************)(* The AST types *)(*****************************************************************************)(* ------------------------------------------------------------------------- *)(* Token/info *)(* ------------------------------------------------------------------------- *)typeinfo=Parse_info.ttypetok=infotype'awrap='a*toktype'aparen=tok*'a*tok(* ------------------------------------------------------------------------- *)(* Sexp *)(* ------------------------------------------------------------------------- *)typesexp=|Sexpofsexplistparen(* or backet actually *)|Atomofatom|Specialofspecialwrap*sexpandspecial=|Quote|BackQuote|Comma|Atandatom=|Numberofstringwrap|Stringofstringwrap|Idofstringwrap(* with tarzan *)typeprogram=sexplist