docs: doxygen for all function in the token
This commit is contained in:
parent
e97ff01f8e
commit
fe8734ea38
3 changed files with 30 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/09/27 22:18:46 by rparodi #+# #+# */
|
/* Created: 2024/09/27 22:18:46 by rparodi #+# #+# */
|
||||||
/* Updated: 2024/09/27 22:20:40 by rparodi ### ########.fr */
|
/* Updated: 2024/09/28 11:47:09 by rparodi ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -16,6 +16,12 @@
|
||||||
#include "me/types.h"
|
#include "me/types.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief boolean function that's say if it's a dollar or not
|
||||||
|
*
|
||||||
|
* @param c character will be checked
|
||||||
|
* @return true if it's dollar, if not return false
|
||||||
|
*/
|
||||||
bool is_dollar(char c)
|
bool is_dollar(char c)
|
||||||
{
|
{
|
||||||
if (c == '$')
|
if (c == '$')
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/09/27 11:46:45 by rparodi #+# #+# */
|
/* Created: 2024/09/27 11:46:45 by rparodi #+# #+# */
|
||||||
/* Updated: 2024/09/27 22:40:57 by rparodi ### ########.fr */
|
/* Updated: 2024/09/28 11:50:00 by rparodi ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -16,6 +16,12 @@
|
||||||
#include "me/types.h"
|
#include "me/types.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief boolean function that's say if it's a quote or not
|
||||||
|
*
|
||||||
|
* @param c character will be checked
|
||||||
|
* @return true if it's quote, if not return false
|
||||||
|
*/
|
||||||
bool is_quote(char c)
|
bool is_quote(char c)
|
||||||
{
|
{
|
||||||
if (c == '"' || c == '\'')
|
if (c == '"' || c == '\'')
|
||||||
|
|
@ -23,6 +29,14 @@ bool is_quote(char c)
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief token function that's read the string and return the tokens
|
||||||
|
*
|
||||||
|
* @param raw the input from stdin
|
||||||
|
* @param start the index where the first quote was found
|
||||||
|
* @param output the token of the string
|
||||||
|
* @return Check if there is an error on this function
|
||||||
|
*/
|
||||||
t_error find_end_string(t_str raw, t_usize *start, t_token *output)
|
t_error find_end_string(t_str raw, t_usize *start, t_token *output)
|
||||||
{
|
{
|
||||||
if (!raw || !output)
|
if (!raw || !output)
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/09/25 16:27:03 by rparodi #+# #+# */
|
/* Created: 2024/09/25 16:27:03 by rparodi #+# #+# */
|
||||||
/* Updated: 2024/09/27 22:29:04 by rparodi ### ########.fr */
|
/* Updated: 2024/09/28 12:16:45 by rparodi ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -16,7 +16,14 @@
|
||||||
#include "me/vec/vec_token.h"
|
#include "me/vec/vec_token.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include "me/mem/mem.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief boolean function that's say if it's a space or not
|
||||||
|
*
|
||||||
|
* @param c character will be checked
|
||||||
|
* @return true if it's space, if not return false
|
||||||
|
*/
|
||||||
bool is_space(char c)
|
bool is_space(char c)
|
||||||
{
|
{
|
||||||
if (c == ' ')
|
if (c == ' ')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue