Hello:
I have been looking for a tool similar to Lex and Yacc for C#. I would
like to be able to generate grammars so I can write a simple
interpreter for another piece of code. However, I have to make many
future grammars and was hoping to find a tool that would allow me to
generate as many as I would like.
I was hoping someone had made a port for C#. I haven't had any luck
looking for one, so any direction would be appreciated.
Thanks a lot,
Travis 7 2156
On Sat, 24 May 2008 14:10:18 -0700, je**********@gmail.com wrote:
Hello:
I have been looking for a tool similar to Lex and Yacc for C#. I would
like to be able to generate grammars so I can write a simple interpreter
for another piece of code. However, I have to make many future grammars
and was hoping to find a tool that would allow me to generate as many as
I would like.
I was hoping someone had made a port for C#. I haven't had any luck
looking for one, so any direction would be appreciated.
Thanks a lot,
Travis
Mono http://www.mono-project.com/Main_Page
Hope this helps
j1mb0jay
In addition to the others mentioned, you could look at http://www.frontiernet.net/~fredm/pa...istWebPage.htm
It does not generate C# programs, but is a dll called by your C# program
from which you can interact with the parse trees (generated by the parser
from a grammar file and the input text). The system is written in C# and is
open source so you can modify it as you see fit.
<je**********@gmail.comwrote in message
news:6d**********************************@r66g2000 hsg.googlegroups.com...
Hello:
I have been looking for a tool similar to Lex and Yacc for C#. I would
like to be able to generate grammars so I can write a simple
interpreter for another piece of code. However, I have to make many
future grammars and was hoping to find a tool that would allow me to
generate as many as I would like.
I was hoping someone had made a port for C#. I haven't had any luck
looking for one, so any direction would be appreciated.
Thanks a lot,
Travis
On May 24, 3:10*pm, "jehugalea...@gmail.com" <jehugalea...@gmail.com>
wrote:
Hello:
I have been looking for a tool similar to Lex and Yacc for C#. I would
like to be able to generate grammars so I can write a simple
interpreter for another piece of code. However, I have to make many
future grammars and was hoping to find a tool that would allow me to
generate as many as I would like.
I was hoping someone had made a port for C#. I haven't had any luck
looking for one, so any direction would be appreciated.
Thanks a lot,
Travis
Just to clarify, I don't want to be able to parse C# files, I want to
generate parsers using C#.
Thanks for everyone's input.
On May 24, 3:37*pm, "Fred Mellender" <nospamPlease_fred...@gmail.com>
wrote:
In addition to the others mentioned, you could look athttp://www.frontiernet.net/~fredm/parser/LinguistWebPage.htm
It does not generate C# programs, but is a dll called by your C# program
from which you can interact with the parse trees (generated by the parser
from a grammar file and the input text). *The system is written in C# and is
open source so you can modify it as you see fit.
<jehugalea...@gmail.comwrote in message
news:6d**********************************@r66g2000 hsg.googlegroups.com...
Hello:
I have been looking for a tool similar to Lex and Yacc for C#. I would
like to be able to generate grammars so I can write a simple
interpreter for another piece of code. However, I have to make many
future grammars and was hoping to find a tool that would allow me to
generate as many as I would like.
I was hoping someone had made a port for C#. I haven't had any luck
looking for one, so any direction would be appreciated.
Thanks a lot,
Travis- Hide quoted text -
- Show quoted text -
This is what I'm looking for. Thanks! je**********@gmail.com wrote:
On May 24, 3:10 pm, "jehugalea...@gmail.com" <jehugalea...@gmail.com>
wrote:
>Hello:
I have been looking for a tool similar to Lex and Yacc for C#. I would like to be able to generate grammars so I can write a simple interpreter for another piece of code. However, I have to make many future grammars and was hoping to find a tool that would allow me to generate as many as I would like.
I was hoping someone had made a port for C#. I haven't had any luck looking for one, so any direction would be appreciated.
Thanks a lot, Travis
Just to clarify, I don't want to be able to parse C# files, I want to
generate parsers using C#.
You can use ANTLR, which is a mature parser generator framework, but a
bit weird perhaps.
You can also use Goldparser. Both are free.
FB
--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Frans Bouma [C# MVP] wrote:
You can use ANTLR, which is a mature parser generator framework, but
a bit weird perhaps.
Has anyone examples on using StringTemplates to generate ILASM
code or to use Reflection.Emit with Antlr?
--
Arto Viitanen This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jean de Largentaye |
last post by:
Hi,
I need to parse a subset of C (a header file), and generate some unit
tests for the functions listed in it. I thus need to parse the code,
then rewrite function calls with wrong parameters....
|
by: alederer |
last post by:
Hallo!
Does anybody know a parser generator that supports unicode (UTF-16), and
is based on something like ICU. The parser is used in a platform
independent and cross-platform communicating...
|
by: pmatos |
last post by:
Hi all,
I need to create a parser in C++ which should parse a somewhat complex
file structure. Yeah, it would be possible to write it from scratch in
C++ however I think it would be easier and...
|
by: Jang |
last post by:
Could anyone point or send me a syntax of C which fits to Parser Generator
(YAAC) ? I've got a big problem because I have to write a translator
C ->assembler :[ There is a lot of work to...
|
by: karthik bala guru |
last post by:
Hi,
I would like to have a XHTML Generator and Parser
in C language from the open source community.
Someone Here, kindly give me a link or
the name of the tool available in the opensource
world....
|
by: (Jamie Andrews) |
last post by:
For a research project, we're looking for a reliable parser for C
that will take an ANSI C program and yield a tree representation of
the program (as a Java or C++ object). Of course a grammar...
|
by: Mike C# |
last post by:
Hi all,
Can anyone recommend a good and *easy to use* lexer and parser generator?
Preferably one that was written specifically for VC++ and not mangled
through 20 different platforms. I've had...
|
by: Peter Michaux |
last post by:
Hi,
Does a parser generator exist that generates JavaScript code? Most
parser generators generate C or Java code.
Thanks,
Peter
|
by: Marc Gravell |
last post by:
In Linq, you can apparently get a meaningful body from and
expression's .ToString(); random question - does anybody know if linq
also includes a parser? It just seemed it might be a handy way to...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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: 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...
| |