Giter Club home page Giter Club logo

termic's People

Contributors

hanoglu avatar maxgyver83 avatar virtuosonic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

termic's Issues

Some code running but not saved

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";

Could not work with classes

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.

issue

Integrate the ReadLine library for better development experience

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.

TermiC does not exit after EOF, but exits after receiving a SIGINT

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

Similar project

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.