by: Profetas |
last post by:
Hi.
I was wondering how can I access the yacc functions?
because when use a normal yacc function such as
qstring {
yylval.string = strdup(yytext+1);
if(yylval.string !='"')...
|
by: Gvs |
last post by:
Hi,
i'm trying to implement a few things in lex and yacc though i'm having
trouble.
What i want to do is be able to parse a term and an expression.
in EBNF my term is defined as: term ::=...
|
by: Volker Hetzer |
last post by:
Hi!
We are finding ourselves in a situation where we have to parse
several more or less free format text files.
In the past, on linux, we had flex and bison for generating
very fast parsers for...
|
by: deepusrp |
last post by:
Helo everyone,
i am doing a project on some graphic tool using qt as
the front end. i am using lex and yacc as parser.
now i am facing a problem since yacc generates only c
code as i want to...
|
by: Berk Birand |
last post by:
Hi,
I am working on a school project where we use lex/yacc to write a compiler
for a fictional (Java-like) language. I have handled all the details about
the yacc and lex files, but I still have...
|
by: Mohitz |
last post by:
Hi Guys,
I am facing a peculiar problem with my yacc script. Following is the
snippet of the yacc script that i am using.
I am using lex as the lexical analyzer.
Sample Input :
|
by: neena.usenet |
last post by:
I have a gui that reads in a file using C++/yacc. If the file has a
parsing error, yacc throws the error to my program and I report it.
The problem is at that point, I would like to try to open...
|
by: thomas |
last post by:
hello I m writing a simple parser using bison. I just used someone's else
c++ grammar, to produce a code beutifier. The thing is , most of the actions
for productions would have form
{$$ = $1 + $2...
|
by: Laszlo Nagy |
last post by:
This is a fragment from my yacc file:
import ply.yacc as yacc
from lex import tokens
from ast import *
def p_msd(p):
r"""msd : SCHEMA WORD LBRACE defs RBRACE """
p = MSDSchema(p)
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|