Tagged Questions

I'm starting to write a light interpreter for a single language for managing graphs. I'a using flex and bison and I have some problems defining the grammar.
For now, I only just want to parse three ...

I want to read rows in excel table but when I want, during reading process, I would like to stop reading forward and I want to read previous lines (backward reading)? How can I go previous rows again?
...

I would like to run several commands in the same shell. After some research I found that I could keep a shell open using the return process from Popen. I can then write and read to stdin and stdout. I ...

I am trying to figure out how to read Unicode input from the terminal using Term::ReadLine. It turns out, if I enter a Unicode character at the prompt, the returned string varies depending on various ...

I'm learning RX and would like to use Console.ReadLine as a source for observable sequences.
I know that I can create "IEnumerable" using "yield return", but for my concrete use case I've decided to ...

I am currently using libedit for "readline"-functionallity, so far it works really well, but I would like to display characters (spaces) after the prompt which are deleteable by the user. Similiar to ...

I am using a buffered reader to read in a file filled with lines of information. Some of the longer lines of text extend to be more than one line so the buffered views them as a new line. Each line ...

I've just set up Racket and have been trying out the interpreter.
However, I can't seem to go up and down the command history using the arrows (or Ctrlp/Ctrln for that matter) or use Ctrlr to search ...

I have a file, which contains data, I want to read it as byte[] and divide into 3 blocks. First line might be read as string, then 2nd block, might be 1-3 length of lines and all left bytes as block ...

I have the following line which I used to compile my current C project with the GNU Readline library in the terminal:
gcc code.c -L/usr/local/lib -I/usr/local/include -lreadline
How would I include ...

I'm new to Ruby on Rails and I'm trying to start the RoR server. But when I run the command rails server it gives me the following error:
Sorry, you can't use byebug without Readline. To solve this, ...

I was trying to readline through http request of the source code of the web page.
My purpose was to read an integer value (price) from the result.
I'm using bufferedReader to readline. I had no clear ...

I am trying to create a GUI for a client application. BufferedReader's .readLine() is acting as an input stream. The problem is that it prints newlines and carriage-returns perfectly in the console, ...

I'm trying to make a script that:
Reads in a line of text line-by-line from a file
For each line, see if any phrases from an array (animal_keywords) are there
If there is, increase the animal count ...

I'm trying to do a small sentence translator, each sentence has one or more translations that will be loaded from a file formatted like this:
EN – english sentence 1
IT – italian translation 1
EN – ...

I have a bash script that is basically a series of commands to download a bunch of climate files. Among many other information on the script, lines 28 to 1027 determine the actual files that should be ...