Category "parsing"

ANTLR function to retrieve text from a single node in a parse tree

I want to retrieve text from a parse tree's node but when i use getText(), it retrieves all the text from that node's children. I have searched but i don't find

In Common Lisp (SBCL) how do you parse a file?

I have a file: test.lisp with this content: (+ 3 3) (let ((n 3)) (+ n 1)) (let ((n 4)) (+ n 1)) (defun d (f) (let ((n 3) (f 4) (g 3)) (if (=

how to parse yaml file that contains dictionary and structure at multiple levels in C++

I am trying to parse a yaml file that likes like below in C++: test_case_0: - input: a: 10 b: 5 - output: area: 50 delta: 5 test_case_1: - input

weird visual studio to linux results

I have this project where we have to convert a made up simple coding language given through a txt into a c++ language and currently I am having a problem with c

How to use Python to parse custom file into JSON format

I am trying to parse a machine/software generated file type into a JSON file type for easy analysis with other software and other Python scripts. The file is st

python ttp parser ignore line if I have ORPHRASE in template and consecutive blank spaces in input text

Envorionment: windows 10, python: 3.9, ttp: 0.8.4 I'm having a problem with ORPHRASE in the TTP template, and if there's consecutive blank-space characters in t

How do I parsing with yacc

Hi i develop a project with python. the name of the project is drawing robot. I use turtle module. For example i entered F 45. firstly i made lexical analysis a

How can I compare 2 nested objects, subtracting the differences & returning the equals?

I have the below 2 variables. const val1 = { students: { grade: [ { subject: "Math3", name: "jack", mark: 60,

How I can parser table values from google apps script

I'm using that in a cell but I have a lot of problems to get the information because many times the sheet is "loading" and does not load the information =QUERY(

Transforming grammar for predictive parsing

Is the following grammar suitable for predictive parsing, or is their an algorithm to modify the grammar to make it suitable for predictive parsing? number = di

How are strings with multiple kinds of quotes interpreted in bash?

To give context, I'm trying to create a simple version of bash, and for that I need to mimic the way bash parses content with multiple sets of single and double

HTTP Post request method does not execute. How to use HttpClient?

I'm trying to make a post request using HttpClient. The expected json which I'm trying to post is stored in var result and looks like : { "ID": 142, "Statio

In Java, how do you deal with double quote inside of a CSV that you need to parse

here is what I want to do, This my spend.csv file : "Date","Description","Detail","Amount" "5/03/21","Cinema","Batman","7.90" "15/02/20","Groceries","Potatoes",

Print only non-blank lines in PowerShell

I have a text file with multiple lines. Many are blank, or so I am assuming from looking at the file contents. I would like to write/print only the lines that c

Firebaseapperror: failed to parse private key: error: invalid pem formatted message

I got this error firebaseapperror: failed to parse private key: error: invalid pem formatted message when I pushed my nodejs app to heroku. I had my environment

How to read exif metadata from jpg file using only python, without any library?

I am trying to extract exif metadata from jpg file but hit a wall in between. I am following this( https://www.w3.org/Graphics/JPEG/jfif3.pdf ) but not sure if

Oracle, Parse JSON with > 4000K

I am trying to parse some JSON like this: SELECT cid, c_message FROM JSON_TABLE('{"cid":"30152","c_message":"....very long message...."}' FORMAT JSON,'$[*]'

Parse quoted-printable encoding content from .mht file

I am trying to get all the images from .mht file by using Nokogiri gem. But since the .mht file has quoted-printable encoding, all the images that I received, h

problem in reading products CSV file with pandas python

I have products CSV file and I am trying to read this file with pandas python but i get this error my code import pandas as pd df = pd.read_csv('D:\\work\\am

Importing PDB (Protein Data Bank) files directly into Unreal Engine 4

I am building a project that will use Unreal Engine 4 to display protein models. Currently I cannot find a way to directly import PDB (Protein Data Bank) files