language-c-quote-0.13.0.2: C/CUDA/OpenCL/Objective-C quasiquoting library.

Copyright | (c) 2006-2011 Harvard University (c) 2011-2013 Geoffrey Mainland (c) 2013 Manuel M T Chakravarty (c) 2013-2016 Drexel University
License | BSD-style
Maintainer | mainland@drexel.edu
Safe Haskell | Safe-Inferred
Language | Haskell2010

Language.C.Parser.Tokens

Description

# Documentation

data Token Source #

Constructors

Teof |
Tpragma String |
Tcomment String | Raw comment string
TintConst (String, Signed, Integer) |
TlongIntConst (String, Signed, Integer) |
TlongLongIntConst (String, Signed, Integer) |
TfloatConst (String, Float) |
TdoubleConst (String, Double) |
TlongDoubleConst (String, Double) |
TcharConst (String, Char) |
TstringConst (String, String) |
Tidentifier String |
Tnamed String |
Tlparen |
Trparen |
Tlbrack |
Trbrack |
Tlbrace |
Trbrace |
Tcomma |
Tsemi |
Tcolon |
Tquestion |
Tdot |
Tarrow |
Tellipses |
Tplus |
Tminus |
Tstar |
Tdiv |
Tmod |
Tnot |
Tand |
Tor |
Txor |
Tlsh |
Trsh |
Tinc |
Tdec |
Tlnot |
Tland |
Tlor |
Teq |
Tne |
Tlt |
Tgt |
Tle |
Tge |
Tassign |
Tadd_assign |
Tsub_assign |
Tmul_assign |
Tdiv_assign |
Tmod_assign |
Tlsh_assign |
Trsh_assign |
Tand_assign |
Tor_assign |
Txor_assign |
Tauto |
Tbreak |
Tcase |
Tchar |
Tconst |
Tcontinue |
Tdefault |
Tdo |
Tdouble |
Telse |
Tenum |
Textern |
Tfloat |
Tfor |
Tgoto |
Tif |
Tint |
Tlong |
Tregister |
Treturn |
Tshort |
Tsigned |
Tsizeof |
Tstatic |
Tstruct |
Tswitch |
Ttypedef |
Tunion |
Tunsigned |
Tvoid |
Tvolatile |
Twhile |
Ttypename |
Tanti_id String |
Tanti_const String |
Tanti_int String |
Tanti_uint String |
Tanti_lint String |
Tanti_ulint String |
Tanti_llint String |
Tanti_ullint String |
Tanti_float String |
Tanti_double String |
Tanti_long_double String |
Tanti_char String |
Tanti_string String |
Tanti_exp String |
Tanti_func String |
Tanti_args String |
Tanti_decl String |
Tanti_decls String |
Tanti_sdecl String |
Tanti_sdecls String |
Tanti_enum String |
Tanti_enums String |
Tanti_esc String |
Tanti_escstm String |
Tanti_edecl String |
Tanti_edecls String |
Tanti_item String |
Tanti_items String |
Tanti_stm String |
Tanti_stms String |
Tanti_type_qual String |
Tanti_type_quals String |
Tanti_type String |
Tanti_spec String |
Tanti_param String |
Tanti_params String |
Tanti_pragma String |
Tanti_comment String |
Tanti_init String |
Tanti_inits String |
Tanti_attr String |
Tanti_attrs String |
TBool |
TComplex |
TImaginary |
Tinline |
Trestrict |
Tasm |
Tattribute |
Tbuiltin_va_arg |
Tbuiltin_va_list |
Textension |
Ttypeof |
T__restrict |
TCUDAmutable |
TCUDA3lt |
TCUDA3gt |
TCUDAdevice |
TCUDAglobal |
TCUDAhost |
TCUDAconstant |
TCUDAshared |
TCUDArestrict |
TCUDAnoinline |
TCLprivate |
TCLlocal |
TCLglobal |
TCLconstant |
TCLreadonly |
TCLwriteonly |
TCLkernel |
T__block |
TObjCnamed String |
TObjCat |
TObjCautoreleasepool |
TObjCcatch |
TObjCclass |
TObjCcompatibility_alias |
TObjCdynamic |
TObjCencode |
TObjCend |
TObjCfinally |
TObjCimplementation |
TObjCinterface |
TObjCNO |
TObjCprivate |
TObjCoptional |
TObjCpublic |
TObjCproperty |
TObjCprotected |
TObjCprotocol |
TObjCpackage |
TObjCrequired |
TObjCselector |
TObjCsynchronized |
TObjCsynthesize |
TObjCthrow |
TObjCtry |
TObjCYES |
TObjC__weak |
TObjC__strong |
TObjC__unsafe_unretained |
Tanti_objc_ifdecl String |
Tanti_objc_ifdecls String |
Tanti_objc_prop String |
Tanti_objc_props String |
Tanti_objc_prop_attr String |
Tanti_objc_prop_attrs String |
Tanti_objc_dicts String |
Tanti_objc_param String |
Tanti_objc_params String |
Tanti_objc_method_proto String |
Tanti_objc_method_def String |
Tanti_objc_method_defs String |
Tanti_objc_recv String |
Tanti_objc_arg String |
Tanti_objc_args String |

#### Instances

Instances details

Show Token Source # |
Instance details Defined in Language.C.Parser.Tokens Methods showsPrec :: Int -> Token -> ShowS Source # show :: Token -> String Source # showList :: [Token] -> ShowS Source #
Eq Token Source # |
Instance details Defined in Language.C.Parser.Tokens Methods (==) :: Token -> Token -> Bool Source # (/=) :: Token -> Token -> Bool Source #
Ord Token Source # |
Instance details Defined in Language.C.Parser.Tokens Methods compare :: Token -> Token -> Ordering Source # (<) :: Token -> Token -> Bool Source # (<=) :: Token -> Token -> Bool Source # (>) :: Token -> Token -> Bool Source # (>=) :: Token -> Token -> Bool Source # max :: Token -> Token -> Token Source # min :: Token -> Token -> Token Source #
Pretty Token Source # |
Instance details Defined in Language.C.Parser.Tokens Methods ppr :: Token -> Doc Source # pprPrec :: Int -> Token -> Doc Source # pprList :: [Token] -> Doc Source #

type ExtensionsInt = Word32 Source #

keywords :: [(String, Token, Maybe [Extensions])] Source #

keywordMap :: Map String (Token, Maybe ExtensionsInt) Source #