lexer added to documentation, and fixed alignment of some imports

This commit is contained in:
herbglitch 2025-03-28 04:12:57 -06:00
parent a9a26ec122
commit acde9dfe3c
17 changed files with 88 additions and 30 deletions

View file

@ -5,8 +5,8 @@
extern "C" {
#endif
#include <stdint.h>
#include "arc/std/parser.h"
#include <stdint.h>
/**
* @brief the config type for archeus, loads in a .chemical file which syntax is specified in the documentation

View file

@ -7,7 +7,6 @@ extern "C" {
#include "arc/std/bool.h"
#include <stdint.h>
#include <stddef.h>
/**
* @brief a hashing function ptr

View file

@ -5,8 +5,8 @@
extern "C" {
#endif
#include <stdint.h>
#include "arc/std/string.h"
#include <stdint.h>
/**
* @brief get string and size from file
@ -39,4 +39,4 @@ void ARC_IO_WriteStrToFile(ARC_String *path, ARC_String *data);
}
#endif
#endif //ARC_STD_IO_H_
#endif //ARC_STD_IO_H_

View file

@ -4,6 +4,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#include "arc/std/string.h"
#include <stdint.h>
@ -220,7 +221,7 @@ ARC_LexerTokenRule ARC_LexerTokenRule_CreateAndReturnMatchCharOrBetween(uint32_t
* @brief creates a ARC_LexerTokenRule with a given id and string
*
* @note this is intended as a helper funtion
* #note string will not be freed (it will be copied and the copy will be freed)
* @note string will not be freed (it will be copied and the copy will be freed)
*
* @param[in] id a tokens id (basically the token value)
* @param[in] character the string to match against, will be copied
@ -233,7 +234,7 @@ ARC_LexerTokenRule ARC_LexerTokenRule_CreateAndReturnMatchStringRule(uint32_t id
* @brief creates a ARC_LexerTokenRule with a given id and string
*
* @note this is intended as a helper funtion
* #note string will not be freed (it will be copied and the copy will be freed)
* @note string will not be freed (it will be copied and the copy will be freed)
*
* @param[in] id a tokens id (basically the token value)
* @param[in] character the string to match against, will be copied

View file

@ -5,8 +5,8 @@
extern "C" {
#endif
#include <stdint.h>
#include "bool.h"
#include <stdint.h>
/**
* @brief substring position within a string