VirtualBox

Changeset 105755 in vbox


Ignore:
Timestamp:
Aug 21, 2024 11:04:24 AM (5 weeks ago)
Author:
vboxsync
Message:

Runtime/script: Add a simple lexer API to turn a stream of characters into tokens for a defined configuration, bugref:10394 [doxygen fix]

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/script.h

    r105752 r105755  
    7171typedef enum RTSCRIPTLEXTOKTYPE
    7272{
    73     /** Invalid type.. */
     73    /** Invalid type. */
    7474    RTSCRIPTLEXTOKTYPE_INVALID = 0,
    75     /** Identifier */
     75    /** Identifier. */
    7676    RTSCRIPTLEXTOKTYPE_IDENTIFIER,
    7777    /** Numerical constant. */
     
    184184        struct
    185185        {
    186             /** Pointer to the operator descriptor.. */
     186            /** Pointer to the operator descriptor. */
    187187            PCRTSCRIPTLEXTOKMATCH pOp;
    188188        } Operator;
     
    328328 * Lexer destructor callback.
    329329 *
    330  * @returns nothing.
    331330 * @param   hScriptLex      The lexer handle.
    332331 * @param   pvUser          Opaque user data passed when creating the lexer.
     
    405404 * Destroys the given lexer handle.
    406405 *
    407  * @returns nothing.
    408406 * @param   hScriptLex             The lexer handle to destroy.
    409407 */
     
    519517 * Skips everything declared as whitespace, including comments and newlines.
    520518 *
    521  * @returns nothing.
    522519 * @param   hScriptLex             The lexer handle.
    523520 */
     
    548545 * @param   hScriptLex    The lexer handle.
    549546 * @param   ch            The first character of the identifier.
    550  * @param   pToken        The token to fill in.
     547 * @param   pTok          The token to fill in.
    551548 * @param   pvUser        Opaque user data, must point to the allowed set of characters for identifiers as a
    552549 *                        zero terminated string. NULL will revert to a default set of characters including
     
    566563 * @param   hScriptLex    The lexer handle.
    567564 * @param   ch            The character starting the rule, unused.
    568  * @param   pToken        The token to fill in.
     565 * @param   pTok          The token to fill in.
    569566 * @param   pvUser        Opaque user data, unused.
    570567 *
     
    583580 * @param   hScriptLex    The lexer handle.
    584581 * @param   ch            The character starting the rule, unused.
    585  * @param   pToken        The token to fill in.
     582 * @param   pTok          The token to fill in.
    586583 * @param   pvUser        Opaque user data, unused.
    587584 *
  • trunk/include/iprt/scriptbase.h

    r105746 r105755  
    114114#endif
    115115
    116 /** @} */
    117116
    118117RT_C_DECLS_END
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette