|
XenevaOS
|
#include "parse/language.h"
Go to the source code of this file.
Enumerations | |
| enum | border_side_e { BORDER_SIDE_TOP = 0 , BORDER_SIDE_RIGHT = 1 , BORDER_SIDE_BOTTOM = 2 , BORDER_SIDE_LEFT = 3 } |
| enum border_side_e |
| css_error css__comma_list_to_style | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| bool(*)(css_language *c, const css_token *ident) | reserved, | ||
| css_code_t(*)(css_language *c, const css_token *token, bool first) | get_value, | ||
| css_style * | result | ||
| ) |
Parse a comma separated list, converting to bytecode
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| reserved | Callback to determine if an identifier is reserved |
| get_value | Callback to retrieve bytecode value for a token |
| style | Pointer to output style |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
| css_error css__ident_list_or_string_to_string | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| bool(*)(css_language *c, const css_token *ident) | reserved, | ||
| lwc_string ** | result | ||
| ) |
Create a string from a list of IDENT/S tokens if the next token is IDENT or references the next token's string if it is a STRING
| c | Parsing context |
| vector | Vector containing tokens |
| ctx | Vector iteration context |
| reserved | Callback to determine if an identifier is reserved |
| result | Pointer to location to receive resulting string |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
The resulting string's reference is passed to the caller
| css_error css__ident_list_to_string | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| bool(*)(css_language *c, const css_token *ident) | reserved, | ||
| lwc_string ** | result | ||
| ) |
Create a string from a list of IDENT/S tokens
| c | Parsing context |
| vector | Vector containing tokens |
| ctx | Vector iteration context |
| reserved | Callback to determine if an identifier is reserved |
| result | Pointer to location to receive resulting string |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
The resulting string's reference is passed to the caller
| css_error css__parse_border_side | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| css_style * | result, | ||
| enum border_side_e | side | ||
| ) |
Parse border-{top,right,bottom,left} shorthand
| c | Parsing context. |
| vector | Vector of tokens to process. |
| ctx | Pointer to vector iteration context. |
| result | Result style. |
| side | The side we're parsing for. |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
Parse border-{top,right,bottom,left} shorthand
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| side | The side we're parsing for |
| result | Pointer to location to receive resulting style |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
| css_error css__parse_border_side_color | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| css_style * | result, | ||
| enum css_properties_e | op | ||
| ) |
Parse border-{top,right,bottom,left}-color
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | Pointer to location to receive resulting style |
| op | Opcode to parse for (encodes side) |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
Parse border_side_color
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | resulting style |
| op | Bytecode OpCode for CSS property to encode |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
| css_error css__parse_border_side_style | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| css_style * | result, | ||
| enum css_properties_e | op | ||
| ) |
Parse border-{top,right,bottom,left}-style
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | Pointer to location to receive resulting style |
| op | Opcode to parse for (encodes side) |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
Parse border_side_style
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | resulting style |
| op | Bytecode OpCode for CSS property to encode |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
| css_error css__parse_border_side_width | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| css_style * | result, | ||
| enum css_properties_e | op | ||
| ) |
Parse border-{top,right,bottom,left}-width
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | Pointer to location to receive resulting style |
| op | Opcode to parse for (encodes side) |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
Parse border_side_width
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | resulting style |
| op | Bytecode OpCode for CSS property to encode |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
| css_error css__parse_colour_specifier | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| uint16_t * | value, | ||
| uint32_t * | result | ||
| ) |
Parse a colour specifier
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| value | Pointer to location to receive value |
| result | Pointer to location to receive result (AARRGGBB) |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
| css_error css__parse_hash_colour | ( | lwc_string * | data, |
| uint32_t * | result | ||
| ) |
Parse a hash colour (#rgb or rrggbb)
| data | Pointer to colour string |
| result | Pointer to location to receive result (AARRGGBB) |
| css_error css__parse_list_style_type_value | ( | css_language * | c, |
| const css_token * | ident, | ||
| uint16_t * | value | ||
| ) |
Parse list-style-type value
| c | Parsing context |
| ident | Identifier to consider |
| value | Pointer to location to receive value |
| css_error css__parse_margin_side | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| css_style * | result, | ||
| enum css_properties_e | op | ||
| ) |
Parse margin-{top,right,bottom,left}
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | Pointer to location to receive resulting style |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
Parse margin_side
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | resulting style |
| op | Bytecode OpCode for CSS property to encode |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
| css_error css__parse_named_colour | ( | css_language * | c, |
| lwc_string * | data, | ||
| uint32_t * | result | ||
| ) |
Parse a named colour
| c | Parsing context |
| data | Colour name string |
| result | Pointer to location to receive result |
| css_error css__parse_padding_side | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| css_style * | result, | ||
| enum css_properties_e | op | ||
| ) |
Parse padding-{top,right,bottom,left}
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | Pointer to location to receive resulting style |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
Parse padding_side
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | resulting style |
| op | Bytecode OpCode for CSS property to encode |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
| css_error css__parse_side | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| css_style * | result, | ||
| enum css_properties_e | op | ||
| ) |
Parse {top,right,bottom,left}
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| op | Opcode to parse for |
| result | Pointer to location to receive resulting style |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
Parse side
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to vector iteration context |
| result | resulting style |
| op | Bytecode OpCode for CSS property to encode |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.
Parse a unit keyword
| ptr | Pointer to keyword string |
| len | Length, in bytes, of string |
| unit | Pointer to location to receive computed unit |
| css_error css__parse_unit_specifier | ( | css_language * | c, |
| const parserutils_vector * | vector, | ||
| int32_t * | ctx, | ||
| uint32_t | default_unit, | ||
| css_fixed * | length, | ||
| uint32_t * | unit | ||
| ) |
Parse a unit specifier
| c | Parsing context |
| vector | Vector of tokens to process |
| ctx | Pointer to current vector iteration context |
| default_unit | The default unit to use if none specified |
| length | Pointer to location to receive length |
| unit | Pointer to location to receive unit |
Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.