CEPL:(1)
π CEPL:(1) β User Commands π
π NAME π
cepl β a C and C++ REPL π
π°οΈ SYNOPSIS π°οΈ
cepl [-hpvw] [-a<out.s>] [-c<compiler>] [-e<code to evaluate>] [-l<library>] [-I<include directory>] [-L<library directory>] [-s<standard>] [-o<out.c>]
π DESCRIPTION π
A readline C and C++ REPL with history, tab-completion, and undo. Itβs giving βterminal main characterβ energy, no cap. π«Ά
πΈ USAGE πΈ
Okay so the following environment variables are respected: CFLAGS, LDFLAGS, LDLIBS, and LIBS. β¨
Command history is read from and saved to ~/.cepl_history. π
To switch between C/C++ modes, specify your C or C++ compiler with -c, such as:
cepl -cg++ -lboost_filesystem -lboost_context -lboost_system
to run in C++ mode linking against Boost and compiling with g++, or:
cepl -cclang -lelf
to run in C mode linking against libelf and compiling with clang. π¦
When the -l flag is passed, the library argument is scanned for symbols which are then added to readline completion. π
π OPTIONS π
Command line options, coming in hot:
-a,--asmβ Name of file to output assembly to.-c,--compilerβ Specify alternate compiler.-e,--evalβ Evaluate argument as C/C++ code.-h,--helpβ Show help/usage information.-o,--outputβ Name of the file to output C/C++ code to.-p,--parseβ Disable addition of dynamic library symbols to readline completion.-s,--stdβ Specify which C/C++ standard to use.-v,--versionβ Show version information.-w,--warningsβ Compile with-Wall -Wextra -pedanticflags.-lβ Link against specified library (flag can be repeated).-Iβ Search directory for header files (flag can be repeated).-Lβ Search directory for libraries (flag can be repeated).
π¦ COMMANDS π¦
Lines prefixed with a ; are interpreted as commands ([] text is optional). Bestie, hereβs the command menu:
;f[unction]β Line is defined outside ofmain()(e.g.;f #define SWAP2(X) ((((X) >> 8) & 0xff) | (((X) & 0xff) << 8))).;h[elp]β Show help.;m[an]β Show manpage for argument (e.g.;m strpbrk).;q[uit]β Exit CEPL.;r[eset]β Reset CEPL to its initial program state.;u[ndo]β Incremental undo (can be repeated).
π NOTES π
Please direct any bug/issue reports, as well as any feature requests, to <https://github.com/alyptik/cepl>. π«Ά
π AUTHORS π
- Joey Pabalinas β
<joeypabalinas@gmail.com.com>π
cepl-32.1.0 Β· July 2024 β bestie out, go write some C/C++ π β¨
π¦ where this page comes from
- arch rolling: cepl 32.1.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms