diff options
Diffstat (limited to 'src/hyper/token.h')
-rw-r--r-- | src/hyper/token.h | 348 |
1 files changed, 173 insertions, 175 deletions
diff --git a/src/hyper/token.h b/src/hyper/token.h index 78d8dafb..e840ec42 100644 --- a/src/hyper/token.h +++ b/src/hyper/token.h @@ -58,186 +58,184 @@ typedef struct Token { User tokens. ie, these can be found on a page */ typedef enum openaxiom_token_kind { - Word = 1, - Page = 2, - Lispcommandquit = 3, - BoldFace = 4, - Link = 5, - Downlink = 6, - Beginscroll = 7, - Spadcommand = 8, - NoLines = 9, - Env = 10, - Par = 11, - Center = 12, - Begin = 13, - Beginitems = 14, - Item = 15, - Table = 16, - Box = 17, - Tab = 18, - Space = 19, - Indent = 20, - Horizontalline = 21, - Newline = 22, - Enditems = 23, - Returnbutton = 24, - Memolink = 25, - Upbutton = 26, - Endscroll = 27, - Thispage = 28, - Returnto = 29, - Free = 30, - Bound = 31, - Lisplink = 32, - Unixlink = 33, - Mbox = 34, - Inputstring = 35, - StringValue = 36, - Spadlink = 37, - Inputbitmap = 38, - Inputpixmap = 39, - Unixcommand = 40, - Emphasize = 41, - Lispcommand = 42, - LispMemoLink = 43, - LispDownLink = 44, - Spadcall = 45, - Spadcallquit = 46, - Spaddownlink = 47, - Spadmemolink = 48, - Qspadcall = 49, - Qspadcallquit = 50, - SimpleBox = 51, - Radioboxes = 52, - BoxValue = 53, - VSpace = 54, - HSpace = 55, - NewCommand = 56, - WindowId = 57, - Beep = 58, - Quitbutton = 59, - Begintitems = 60, - Titem = 61, - End = 62, - It = 63, - Sl = 64, - Tt = 65, - Rm = 66, - Ifcond = 67, - Else = 68, - Fi = 69, - Newcond = 70, - Setcond = 71, - Button = 72, - Windowlink = 73, - Haslisp = 74, - Hasup = 75, - Hasreturn = 76, - Hasreturnto = 77, - Lastwindow = 78, - Endtitems = 79, - Lispwindowlink = 80, - Beginpile = 81, - Endpile = 82, - Nextline = 83, - Pastebutton = 84, - Color = 85, - Helppage = 86, - Patch = 87, - Radiobox = 88, - ifrecond = 89, - Math = 90, - Mitem = 91, - Pagename = 92, - Examplenumber = 93, - Replacepage = 94, - Inputimage = 95, - Spadgraph = 96, - Indentrel = 97, - Controlbitmap = 98, - NumberUserTokens = 98, + openaxiom_Word_token = 1, + openaxiom_Page_token = 2, + openaxiom_Lispcommandquit_token = 3, + openaxiom_BoldFace_token = 4, + openaxiom_Link_token = 5, + openaxiom_Downlink_token = 6, + openaxiom_Beginscroll_token = 7, + openaxiom_Spadcommand_token = 8, + openaxiom_NoLines_token = 9, + openaxiom_Env_token = 10, + openaxiom_Par_token = 11, + openaxiom_Center_token = 12, + openaxiom_Begin_token = 13, + openaxiom_Beginitems_token = 14, + openaxiom_Item_token = 15, + openaxiom_Table_token = 16, + openaxiom_Box_token = 17, + openaxiom_Tab_token = 18, + openaxiom_Space_token = 19, + openaxiom_Indent_token = 20, + openaxiom_Horizontalline_token = 21, + openaxiom_Newline_token = 22, + openaxiom_Enditems_token = 23, + openaxiom_Returnbutton_token = 24, + openaxiom_Memolink_token = 25, + openaxiom_Upbutton_token = 26, + openaxiom_Endscroll_token = 27, + openaxiom_Thispage_token = 28, + openaxiom_Returnto_token = 29, + openaxiom_Free_token = 30, + openaxiom_Bound_token = 31, + openaxiom_Lisplink_token = 32, + openaxiom_Unixlink_token = 33, + openaxiom_Mbox_token = 34, + openaxiom_Inputstring_token = 35, + openaxiom_StringValue_token = 36, + openaxiom_Spadlink_token = 37, + openaxiom_Inputbitmap_token = 38, + openaxiom_Inputpixmap_token = 39, + openaxiom_Unixcommand_token = 40, + openaxiom_Emphasize_token = 41, + openaxiom_Lispcommand_token = 42, + openaxiom_LispMemoLink_token = 43, + openaxiom_LispDownLink_token = 44, + openaxiom_Spadcall_token = 45, + openaxiom_Spadcallquit_token = 46, + openaxiom_Spaddownlink_token = 47, + openaxiom_Spadmemolink_token = 48, + openaxiom_Qspadcall_token = 49, + openaxiom_Qspadcallquit_token = 50, + openaxiom_SimpleBox_token = 51, + openaxiom_Radioboxes_token = 52, + openaxiom_BoxValue_token = 53, + openaxiom_VSpace_token = 54, + openaxiom_HSpace_token = 55, + openaxiom_NewCommand_token = 56, + openaxiom_WindowId_token = 57, + openaxiom_Beep_token = 58, + openaxiom_Quitbutton_token = 59, + openaxiom_Begintitems_token = 60, + openaxiom_Titem_token = 61, + openaxiom_End_token = 62, + openaxiom_It_token = 63, + openaxiom_Sl_token = 64, + openaxiom_Tt_token = 65, + openaxiom_Rm_token = 66, + openaxiom_Ifcond_token = 67, + openaxiom_Else_token = 68, + openaxiom_Fi_token = 69, + openaxiom_Newcond_token = 70, + openaxiom_Setcond_token = 71, + openaxiom_Button_token = 72, + openaxiom_Windowlink_token = 73, + openaxiom_Haslisp_token = 74, + openaxiom_Hasup_token = 75, + openaxiom_Hasreturn_token = 76, + openaxiom_Hasreturnto_token = 77, + openaxiom_Lastwindow_token = 78, + openaxiom_Endtitems_token = 79, + openaxiom_Lispwindowlink_token = 80, + openaxiom_Beginpile_token = 81, + openaxiom_Endpile_token = 82, + openaxiom_Nextline_token = 83, + openaxiom_Pastebutton_token = 84, + openaxiom_Color_token = 85, + openaxiom_Helppage_token = 86, + openaxiom_Patch_token = 87, + openaxiom_Radiobox_token = 88, + openaxiom_ifrecond_token = 89, + openaxiom_Math_token = 90, + openaxiom_Mitem_token = 91, + openaxiom_Pagename_token = 92, + openaxiom_Examplenumber_token = 93, + openaxiom_Replacepage_token = 94, + openaxiom_Inputimage_token = 95, + openaxiom_Spadgraph_token = 96, + openaxiom_Indentrel_token = 97, + openaxiom_Controlbitmap_token = 98, + openaxiom_NumberUserTokens_token = 98, /* * Here are the system tokens. These are used internally to help * with parsing and displaying of text */ - SystemTokens = 1001, - Lbrace = 1001, - Rbrace = 1002, - Macro = 1003, - Group = 1004, - Scrollbar = 1005, - Pound = 1006, - Lsquarebrace = 1007, - Rsquarebrace = 1008, - Punctuation = 1009, - Dash = 1010, - Tableitem = 1011, - Scrollingnode = 1012, - Headernode = 1013, - Footernode = 1014, - Verbatim = 1015, - Scroll = 1016, - Dollar = 1017, - Percent = 1018, - Carrot = 1019, - Underscore = 1020, - Tilde = 1021, - Cond = 1022, - Noop = 1023, - Description = 1024, - Icorrection = 1025, - Boxcond = 1026, - Unkeyword = 1027, - Titlenode = 1028, - Paste = 1029, - Spadsrc = 1030, - Helpbutton = 1031, - Spadsrctxt = 1032, + openaxiom_SystemTokens_token = 1001, + openaxiom_Lbrace_token = 1001, + openaxiom_Rbrace_token = 1002, + openaxiom_Macro_token = 1003, + openaxiom_Group_token = 1004, + openaxiom_Scrollbar_token = 1005, + openaxiom_Pound_token = 1006, + openaxiom_Lsquarebrace_token = 1007, + openaxiom_Rsquarebrace_token = 1008, + openaxiom_Punctuation_token = 1009, + openaxiom_Dash_token = 1010, + openaxiom_Tableitem_token = 1011, + openaxiom_Scrollingnode_token = 1012, + openaxiom_Headernode_token = 1013, + openaxiom_Footernode_token = 1014, + openaxiom_Verbatim_token = 1015, + openaxiom_Scroll_token = 1016, + openaxiom_Dollar_token = 1017, + openaxiom_Percent_token = 1018, + openaxiom_Carrot_token = 1019, + openaxiom_Underscore_token = 1020, + openaxiom_Tilde_token = 1021, + openaxiom_Cond_token = 1022, + openaxiom_Noop_token = 1023, + openaxiom_Description_token = 1024, + openaxiom_Icorrection_token = 1025, + openaxiom_Boxcond_token = 1026, + openaxiom_Unkeyword_token = 1027, + openaxiom_Titlenode_token = 1028, + openaxiom_Paste_token = 1029, + openaxiom_Spadsrc_token = 1030, + openaxiom_Helpbutton_token = 1031, + openaxiom_Spadsrctxt_token = 1032, /* * Here are the tokens used to mark the end to some sort of group of * tokens. ie, the tokens found in a centerline command */ - Endtokens = 2000, - End1 = 2001, - End2 = 2002, - Endbutton = 2003, - Endlink = 2004, - Endheader = 2005, - Endfooter = 2006, - Endscrolling = 2007, - Endgroup = 2008, - Endarg = 2009, - Endbox = 2010, - Endmbox = 2011, - Endspadcommand = 2012, - Endpix = 2013, - Endmacro = 2014, - Endparameter = 2015, - Endtable = 2016, - Endtableitem = 2017, - End3 = 2018, - Endif = 2019, - Enddescription = 2020 - Endinputbox = 2021, - Endtitle = 2022, - Endpastebutton = 2023, - - Endtypes = 3000, - Endpage = 3002, - EndScroll = 3007, /* had to use a S because Endscroll is - already a keyword */ - - Endcenter = 3012, - EndItems = 3014, /* Same thing here as EndScroll except - with the i */ - EndTitems = 3060, /* Ibid for the T */ - Endpatch = 3087, - Endverbatim = 4015, - Endmath = 4016, - Endpaste = 4029, - Endspadsrc = 4030 + openaxiom_Endtokens_token = 2000, + openaxiom_End1_token = 2001, + openaxiom_End2_token = 2002, + openaxiom_Endbutton_token = 2003, + openaxiom_Endlink_token = 2004, + openaxiom_Endheader_token = 2005, + openaxiom_Endfooter_token = 2006, + openaxiom_Endscrolling_token = 2007, + openaxiom_Endgroup_token = 2008, + openaxiom_Endarg_token = 2009, + openaxiom_Endbox_token = 2010, + openaxiom_Endmbox_token = 2011, + openaxiom_Endspadcommand_token = 2012, + openaxiom_Endpix_token = 2013, + openaxiom_Endmacro_token = 2014, + openaxiom_Endparameter_token = 2015, + openaxiom_Endtable_token = 2016, + openaxiom_Endtableitem_token = 2017, + openaxiom_End3_token = 2018, + openaxiom_Endif_token = 2019, + openaxiom_Enddescription_token = 2020, + openaxiom_Endinputbox_token = 2021, + openaxiom_Endtitle_token = 2022, + openaxiom_Endpastebutton_token = 2023, + openaxiom_Endtypes_token = 3000, + openaxiom_Endpage_token = 3002, + openaxiom_EndScroll_token = 3007, /* had to use a S because Endscroll is + already a keyword */ + openaxiom_Endcenter_token = 3012, + openaxiom_EndItems_token = 3014, /* Same thing here as EndScroll except + with the i */ + openaxiom_EndTitems_token = 3060, /* Ibid for the T */ + openaxiom_Endpatch_token = 3087, + openaxiom_Endverbatim_token = 4015, + openaxiom_Endmath_token = 4016, + openaxiom_Endpaste_token = 4029, + openaxiom_Endspadsrc_token = 4030 } openaxiom_token_kind; @@ -246,10 +244,10 @@ extern char *token_table[]; /* places from which input may be read */ typedef enum openaxiom_input_kind { - FromFile = 1, - FromString = 2, - FromSpadSocket = 3, - FromUnixFD = 4 + openaxiom_FromFile_input = 1, + openaxiom_FromString_input = 2, + openaxiom_FromSpadSocket_input = 3, + openaxiom_FromUnixFD_input = 4 } openaxiom_input_kind; extern FILE *unixfd; |