hanoglu / termic Goto Github PK
View Code? Open in Web Editor NEWGCC powered interactive C/C++ REPL terminal created with BASH
License: GNU General Public License v3.0
GCC powered interactive C/C++ REPL terminal created with BASH
License: GNU General Public License v3.0
Hey ๐,
Thanks for the tool, i was interested so checked it out.
Actually, reading the usage i thought of another command cling
, that i use.
The main difference being cling from scratch uses LLVM, and termiC uses GCC.
The main cons of cling for me was it's large size, termiC wins here.
Just wanted to mention it to you, it might help proceed with new features :)
After receiving an EOF character (Ctrl+D) on an empty line, TermiC does not exit, and opens a new line.
Instead, sending a SIGINT (Ctrl+C) would quit TermiC in the same way I expected an EOF to do so. But SIGINT should not stop a REPL.
Ideally, I think it should behave like other REPLs such as bash, where the program would end after an EOF, which is much more intuitive (since we are using bash already!).
Great job on this nifty piece of shell script btw! I use it a lot for quick things like getting the sizeof of a non-standard type in GCC, and it's neaten up my workflow a lot by removing the need for temporary source files everywhere on my desktop :P
if I type the following code it runs Ok
>> #include <iterator>
>> #include <algorithm>
>> #include <math.h>
>> #include <vector>
>> vector<double> v;
>> v.push_back(M_PI);
>> v.push_back(1.0);
>> std::copy(v.begin(),v.end(),ostream_iterator<double>(cout," "));
3.14159 1
but when typing the show command the copy call doesn't show
>> show
#include <vector>
#include <math.h>
#include <algorithm>
#include <iterator>
#include "stdio.h"
#include "stdlib.h"
#include <iostream>
using namespace std;
int main() {
vector<double> v;
v.push_back(M_PI);
v.push_back(1.0);
if I add more code it works but doesn't add the copy call
>> int number = 1234567890
>> show
#include <vector>
#include <math.h>
#include <algorithm>
#include <iterator>
#include "stdio.h"
#include "stdlib.h"
#include <iostream>
using namespace std;
int main() {
vector<double> v;
v.push_back(M_PI);
v.push_back(1.0);
int number = 1234567890;
same case here with the for loop, but the initialization after gets saved
>> #include <map>
>> map<int,string> m;
>> m[42] = "the ultimate answer";
>> m[0] = "you are worth nothing";
>> for (auto p : m) {
...cout << p.first << " " << p.second << endl;
...}
0 you are worth nothing
42 the ultimate answer
>> string othervar = "other va"
>> show
#include <map>
#include <vector>
#include <math.h>
#include <algorithm>
#include <iterator>
#include "stdio.h"
#include "stdlib.h"
#include <iostream>
using namespace std;
int main() {
vector<double> v;
v.push_back(M_PI);
v.push_back(1.0);
int number = 1234567890;
map<int,string> m;
m[42] = "the ultimate answer";
m[0] = "you are worth nothing";
string othervar = "other va";
I was testing with simple functions, which worked then, but when I tried to implement classes with it, it did not work. I installed dependencies.
Hello, and thanks a lot for this amazing project. i really love it.
Just one suggestion. there is a library called: ReadLine that will add a lot of cool features to console applications. for example, you can provide auto-suggestion, auto-completion, etc.. with it.
Clink extensively use it and to be honest, clink+cmd is an amazing experience for me:
https://chrisant996.github.io/clink/
I hope TermiC also integrates it into itself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.