1*514f4c20SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*514f4c20SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*514f4c20SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*514f4c20SAndrew Rist * distributed with this work for additional information 6*514f4c20SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*514f4c20SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*514f4c20SAndrew Rist * "License"); you may not use this file except in compliance 9*514f4c20SAndrew Rist * with the License. You may obtain a copy of the License at 10*514f4c20SAndrew Rist * 11*514f4c20SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*514f4c20SAndrew Rist * 13*514f4c20SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*514f4c20SAndrew Rist * software distributed under the License is distributed on an 15*514f4c20SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*514f4c20SAndrew Rist * KIND, either express or implied. See the License for the 17*514f4c20SAndrew Rist * specific language governing permissions and limitations 18*514f4c20SAndrew Rist * under the License. 19*514f4c20SAndrew Rist * 20*514f4c20SAndrew Rist *************************************************************/ 21*514f4c20SAndrew Rist 22*514f4c20SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _TOKENS_H 25cdf0e10cSrcweir #define _TOKENS_H 26cdf0e10cSrcweir 27cdf0e10cSrcweir /*------------------------------------------------------ */ 28cdf0e10cSrcweir /*------------------------------------------------------ */ 29cdf0e10cSrcweir /* Tokens for parsing src files */ 30cdf0e10cSrcweir /*------------------------------------------------------ */ 31cdf0e10cSrcweir /*------------------------------------------------------ */ 32cdf0e10cSrcweir #define IGNOREDTOKENS 400 /* #include | #pragma | //... | ... */ 33cdf0e10cSrcweir #define COMMEND 401 /*... */ 34cdf0e10cSrcweir #define DEFINEDRES 402 /* Text = { */ 35cdf0e10cSrcweir #define ANYTOKEN 404 /* XYZ */ 36cdf0e10cSrcweir #define UNKNOWNTOKEN 405 /* XYZ[ \t]$ */ 37cdf0e10cSrcweir #define UNKNOWNCONSTRUCTION 406 /* XYZ ( xxx, yyy, zzz ) */ 38cdf0e10cSrcweir #define UNKNOWNCHAR 407 /* . */ 39cdf0e10cSrcweir /*------------------------------------------------------ */ 40cdf0e10cSrcweir /* prev. tokens will not be executed */ 41cdf0e10cSrcweir #define FILTER_LEVEL 500 42cdf0e10cSrcweir /* following tokens will be executed */ 43cdf0e10cSrcweir /*------------------------------------------------------ */ 44cdf0e10cSrcweir #define CONDITION 501 /* #if... | #endif ... | ... */ 45cdf0e10cSrcweir #define EMPTYLINE 502 /* */ 46cdf0e10cSrcweir #define RESSOURCE 503 /* Menu MID_TEST */ 47cdf0e10cSrcweir #define RESSOURCEEXPR 504 /* Menu ( MID_TEST + .. ) */ 48cdf0e10cSrcweir #define SMALRESSOURCE 505 /* PageItem { */ 49cdf0e10cSrcweir #define TEXTLINE 506 /* TEXT = "hhh" */ 50cdf0e10cSrcweir #define LONGTEXTLINE 507 /* TEXT = "hhh" TEST "HHH" ... */ 51cdf0e10cSrcweir #define TEXT 508 /* "Something like this" */ 52cdf0e10cSrcweir #define LEVELUP 509 /* { */ 53cdf0e10cSrcweir #define LEVELDOWN 510 /* }; */ 54cdf0e10cSrcweir #define APPFONTMAPPING 511 /* MAP_APPFONT(10,10) */ 55cdf0e10cSrcweir #define ASSIGNMENT 512 /* Somathing = Anything */ 56cdf0e10cSrcweir #define LISTASSIGNMENT 513 /* ...List [xyz]=... */ 57cdf0e10cSrcweir #define LISTTEXT 514 /* < "Text" ... > */ 58cdf0e10cSrcweir #define RSCDEFINE 515 /* #define MY_TEXT */ 59cdf0e10cSrcweir #define RSCDEFINELEND 516 /* */ 60cdf0e10cSrcweir #define NEWTEXTINRES 517 /* ### Achtung : Ne... */ 61cdf0e10cSrcweir #define UIENTRIES 518 /* UIEntries = { */ 62cdf0e10cSrcweir #define PRAGMA 519 /* #pragma ... */ 63cdf0e10cSrcweir #define _LISTTEXT 521 /* { "Text" ... } */ 64cdf0e10cSrcweir #define TEXTREFID 522 /* Text = 12345 */ 65cdf0e10cSrcweir #define LISTRESID 523 /* < 12345; ... > */ 66cdf0e10cSrcweir #define _LISTRESID 523 /* { 12345; ... } */ 67cdf0e10cSrcweir #define NORMDEFINE 524 /* #define ... */ 68cdf0e10cSrcweir /*------------------------------------------------------ */ 69cdf0e10cSrcweir /*------------------------------------------------------ */ 70cdf0e10cSrcweir /* Tokens for parsing cfg files */ 71cdf0e10cSrcweir /*------------------------------------------------------ */ 72cdf0e10cSrcweir /*------------------------------------------------------ */ 73cdf0e10cSrcweir #define CFG_TAG 501 74cdf0e10cSrcweir #define CFG_TEXT_START 505 75cdf0e10cSrcweir #define CFG_TEXT_END 506 76cdf0e10cSrcweir #define CFG_TEXTCHAR 507 77cdf0e10cSrcweir #define CFG_CLOSETAG 508 78cdf0e10cSrcweir #define CFG_UNKNOWNTAG 509 79cdf0e10cSrcweir #define CFG_TOKEN_PACKAGE 600 80cdf0e10cSrcweir #define CFG_TOKEN_COMPONENT 601 81cdf0e10cSrcweir #define CFG_TOKEN_CONFIGNAME 602 82cdf0e10cSrcweir #define CFG_TOKEN_TEMPLATE 603 83cdf0e10cSrcweir #define CFG_TOKEN_OORNAME 604 84cdf0e10cSrcweir #define CFG_TOKEN_OORVALUE 605 85cdf0e10cSrcweir #define CFG_TOKEN_NO_TRANSLATE 606 86cdf0e10cSrcweir 87cdf0e10cSrcweir /*------------------------------------------------------ */ 88cdf0e10cSrcweir /*------------------------------------------------------ */ 89cdf0e10cSrcweir /* Tokens for parsing xrm files */ 90cdf0e10cSrcweir /*------------------------------------------------------ */ 91cdf0e10cSrcweir /*------------------------------------------------------ */ 92cdf0e10cSrcweir #define XRM_README_START 501 93cdf0e10cSrcweir #define XRM_README_END 502 94cdf0e10cSrcweir #define XRM_SECTION_START 503 95cdf0e10cSrcweir #define XRM_SECTION_END 504 96cdf0e10cSrcweir #define XRM_PARAGRAPH_START 505 97cdf0e10cSrcweir #define XRM_PARAGRAPH_END 506 98cdf0e10cSrcweir #define XRM_TEXT_START 507 99cdf0e10cSrcweir #define XRM_TEXT_END 508 100cdf0e10cSrcweir #define XRM_LIST_START 509 101cdf0e10cSrcweir #define XRM_LIST_END 510 102cdf0e10cSrcweir #define XML_TEXTCHAR 600 103cdf0e10cSrcweir 104cdf0e10cSrcweir 105cdf0e10cSrcweir #endif 106