Added tons of AI generated docs and a lot of cleanups. No code changes. (0.41.5)
This commit is contained in:
parent
24c54fba41
commit
4e69a3ce63
151 changed files with 3897 additions and 427 deletions
25
src/repl.h
25
src/repl.h
|
|
@ -1,3 +1,16 @@
|
|||
/**
|
||||
* This file is part of the Fun programming language.
|
||||
* https://fun-lang.xyz/
|
||||
*
|
||||
* Copyright 2025 Johannes Findeisen <you@hanez.org>
|
||||
* Licensed under the terms of the Apache-2.0 license.
|
||||
* https://opensource.org/license/apache-2-0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file repl.h
|
||||
* @brief Interactive Read-Eval-Print Loop (REPL) entry point.
|
||||
*/
|
||||
#ifndef FUN_REPL_H
|
||||
#define FUN_REPL_H
|
||||
|
||||
|
|
@ -8,8 +21,16 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#ifdef FUN_WITH_REPL
|
||||
// Runs the interactive REPL using the provided, already-initialized VM.
|
||||
// Returns 0 on normal exit.
|
||||
/**
|
||||
* @brief Run the interactive REPL using an already-initialized VM.
|
||||
*
|
||||
* Reads lines from stdin, evaluates them in the provided VM context, and
|
||||
* prints results/errors. The function returns on EOF or when the user issues
|
||||
* a quit command supported by the REPL implementation.
|
||||
*
|
||||
* @param vm Pointer to an initialized VM; must not be NULL.
|
||||
* @return 0 on normal exit, non-zero on fatal error.
|
||||
*/
|
||||
int fun_run_repl(VM *vm);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue