IDE :: Creating New Type Of File That Has Its Own 'parsing Language'

Jun 14, 2010

I have been working on a very advanced feature that will allow programmers to right object that spit out other objects. Code that writes code. However, I have run into a problem. I use a file type that specifies to the coding parser how to create the object that is going to write the objects. Example, the Programmer writes a "NTF" file which contains code switches and variables that the Computer will parse and create a "Template Object" that the programmer can include in his project and call to generate the code objects. I'll right a object that creates an ASPX page for each table in my database, and I'll then call that object against my database. It's pretty straight forward. This "NTF" file has special parser commands, and uses VB.NET to manipulate the output based on the variables that come into the object. The problem is I would like to have an editor just as advanced as Visual Studio to recognizes the custom parser commands and the VB.net code. At the very least, something that formats the "NTF" file and integrates into Visual Studio.url...

View 2 Replies


ADVERTISEMENT

Parsing An Object Type To A GUID Type?

May 12, 2009

how can I convert an object type to a GUID type in VB.NET?

View 3 Replies

Creating Custom File Type In .net 08?

Feb 5, 2011

i want to make a custom file type like "abc.xyz" which should have all the attribs of a directory like

moving other files and folders to it, open, close, delete, create new, etc... in vb.net or c#.net

View 5 Replies

Creating Excel File - Force As String Type?

Feb 12, 2010

I have a vb.net app that I create an excel file with from sql data. It creates it fine but for cells that have a social security number, it makes that cell numeric and removes the leading zeros. Does anyone know how to force this cell as a string when adding it to the worksheet? Is there a property or method I can call to do this in my vb app?

View 1 Replies

Creating A New Programming Language?

Dec 22, 2009

I have made an application (similar to Logo) which can take some simple code and draw a line according to that. I have the graphics covered but I want to know a few steps towards compiling and running a programming language. A few specifications are: - Has built-in methods and variables

View 2 Replies

Creating Own Scripting Language?

Feb 9, 2010

Is there a way to create my own scripting language. I don't have any details on what I want to do because it's way too complex,

View 8 Replies

Designing And Creating A Basic Language Parser?

Jun 2, 2010

how I would go about designing and making a parser for a basic-like language:

var my_string = "Hello World"
var my_number = 10
Print my_string
Print my_number + 10

Quite simple (although not very simple when it comes to programming it ). Does anyone have any ideas on where I can get started/how I would go about parsing it? I know it would involve a parser tree, but how would each node be structured?

View 3 Replies

Type Of Variable Scooping In Vba Language

Jan 6, 2012

I try to understand the VBA scope type, it's impossible to make this such of thing in VBA, but it's possible in other language (java,scala,etc):

[Code]...

Can you give me some information about this type of limited scoping ? It's dynamical or lexical, i don't really understand the difference

View 2 Replies

Why Delegates Are Not Type Safe In Language

Sep 1, 2011

i don't know what i said in this thread's topic is right or wrong.Since my perception about Delegates in .NET is that it is type safe .Delegate object will store the reference of only those functions whose signature matches with Delegate's signature .That i know from last 1 and a half year but never experimented .

[Code]...

View 1 Replies

"Creating Own File Type" Clarification?

Mar 13, 2012

Okay, I was doing a lot of research this morning and found what I hope to be a promising example (code and installation file in the zip folder I downloaded). Even though it is from 2005, and I am working with 2010.I had to update/upgrade the entire project to view the code, and... ok, I am just rambling.I know how to set the filters for SaveDialog and OpenDialog (took me a long while to understand, but I now understand it), but when I finish and build the project to host it on CNet Download or somewhere similar.

View 3 Replies

Localization - Menu Strip To Select An Other Language - Doesn't Change My Menustip Text To My Selected Language

Mar 29, 2010

In my winform app in VB.NET I want to use the localization option. But i have a few questions/problems. I'm using a menu strip to select an other language. But it seems that is doesn't change my menustip text to my selected language. It does change my labels, buttons, and textboxes but menu strips don't seem to change when I choose another language. Also is it possible to get those resx files such as MyForm.fr-FR.resx compiled so it isn't an external file outside my app? Or to get those files in an Language folder at the same location of my app, so i don't have all those fr-FR & nl-Nl folders in the same location as my program?

View 4 Replies

C# - .Net String Parsing Library Or Regex For Parsing .Net Code Files

Mar 5, 2009

I would like to be able to parse vb.net code files, so I can examine the collection of Subs, Functions (and their contents, including comments), private variables, etc. I can be open the actual source code files. So for example, if I have:

[Code]....

View 7 Replies

Migrate From .net Specific Language To .net Framework Language?

Mar 11, 2010

What reasons are there to migrate from vb.net specific language to .net framework language?
Examples:

VB.net
ubound
msgBox
.Net Framework
array.getUpperBound(0)
messageBox

View 4 Replies

Parsing String Each Iteration, Or Parsing Once And Storing?

Mar 16, 2011

I'm creating a vb.net winforms application that will take in user given strings, parse them, and print out labels with variable information. The given string will be used in all the labels, but the variable part of the string will change with each label.

My question is: is it better to parse the strings one time, then store those values in arrays, or to parse the string each time a label is printed? Which will perform better? Which is better practice? What is the proper way to test something like this?

View 2 Replies

Parsing A Csv File?

Jun 30, 2010

we are trying to use google to get exchange rate prices. they use a csv file which we get the code to go out and get.what im trying to do is pick the first line of the file and just use that. i have the following code but its not just picking the one line.

[Code]...

View 6 Replies

Parsing A Log File

Jan 26, 2012

I am trying to create a program in VB.net to help me fix broken computer systems by parsing log files. I have some ideas but I have only built simple programs previously. I have ideas how to do this but so far my attempts haven't gone so well.Specifically I can either import a txt type file or copy and paste the contents of a txt file into the program and then have it compare what has been posted to a good/bad list then it reprints out what is bad in color coding. Also if their is a way to update the file it uses for comparison by entering in a txt file that would be stellar.

View 1 Replies

Csv File Parsing / Correcting

Jul 15, 2011

I have a dirty csv file that has 13 headers, but sometimes misses the last column value on some lines.

If the line has 12 columns, I would like to add ,0 as the 13th column.

Example:

2006/03/09,30403,7820,68,220,538,1956,14,3765,11384,26676,17932
2007/12/20,40796,13393,33,79,427,2604,11,4042,24974,44583,41561,7688

How can I read the file, and add ,0 to a line that only has 11 comma's and leave the lines alone when they have 12 comma's?

View 6 Replies

Doing Text File Parsing?

Aug 17, 2009

I have a complicated text file that has 10000 lines of text which is of the format

$$ ************************************
$$ Put FIXTURE alignment code below
$$ you are in Manual mode at this point
$$ ************************************

[code]....

View 1 Replies

Parsing A Text File

May 1, 2009

I'm toying with an idea that would require me to parse a text file that contains a SQL statement. (i.e. Select * From Customers) I would like to be able to programmatically via Visual Basic identify key words, table names, comment lines, etc.So, how do compilers handle such a task? How does a SQL database handle such a task? All of the parsing tools are for CSV files with some sort of consistent delimiter. I'm wondering if I need to read the file one character at a time and then do some sort of comparison.

View 2 Replies

Parsing A Text File?

Mar 28, 2009

I need to code a hitcounter button that looks at a textfile,counts how many times a site has been visited and then shows a message box with the results

View 13 Replies

Parsing A UTF-16 Encoded CSV File

Jun 24, 2009

I have a scenario where i have to Parse a UTF-16 Encoded CSV file and populate a treeview using VB.Net. I need to parse the CSV files which may also support other languages. how to proceed on this and what classes of .net I can use to solve this issue.

In VB.Net we do not have a provision to parse a UTF-16 file But There is a provision for reading UTF-8 encoded file.The method is OpenText(). I want a similar method but it should parse or read a UTF-16 encoded file.

View 10 Replies

Parsing Text File?

Mar 4, 2011

I'm using vb.net. sample data below.. Can i use regular expression to parse this kind of data?

ID:="000000877978" LOCATION:="ALASKA" TELEPHONE:="8979797890" AGE:="33"
ID:="080832108089" LOCATION:="ASIA" TELEPHONE:="088238780" AGE:=45 BIRTHDAY="04/19/1968"

View 2 Replies

Parsing Text From A SQL File

Feb 23, 2010

So i have a SQL file with this sort of data :

[Code]....

p.s. If i am not able to make my self clear here then do ask me for my code , It works perfectly but causes the application hang and is pretty slow ( Using the StreamReader )

View 7 Replies

Parsing The RTF File Format?

Oct 25, 2008

I'm in the process of parsing the RTF file format, all was going well until I got to the body part of it.

Quote:

This part has been done
{
tf1ansiansicpg1252deff0deflang2057{fonttbl{f0fswissfcharset 0 Arial;}{f1fswissfprq1fcharset0 Arial Black;}}

[Code].....

View 2 Replies

Parsing The Text File?

Dec 11, 2010

I Want to create a active log moniter but im having a problem parsing the text file, the data is jumbled like this

["#0000000040000002#","Vicinity","Neoilithic",1291770399]Masterengi
["#0000000040000002#","Vicinity","Neoilithic",1291773853]Igotit
["#0000000040000002#","Vicinity","Neoilithic",1291773854]Respect

[code]....

it dose what i want it to but it creates a massive file and dosnt do it quick enough i have to have a 1 second+ delay in it or it goes bezurk.

View 15 Replies

Parsing Xml File Of Different Format Using .NET?

Nov 7, 2011

I am trying to parse the xml file of format mentioned below and display it using textbox in VB.NET. But I am not able to parse it.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Table>
<Product>
<Product_id value="1"/>

[code]....

View 2 Replies

VS 2010 Parsing An XML File?

Aug 18, 2010

I'm wanting to have the option in my app to save configuration settings and then be able to import them on another machine or when the application is launched later. So I've got my saving routine working fine, using the XmlWriter class to write various settings to the XML file. I'm not quite sure what I should be using to do the parsing of the XML file to read the settings back in though, as there seems to be a few different ways to do this.Should I be creating an XmlDocument instance from the XML file and then using the ReadNode method or one of the other similar methods? Or should I be using the XmlReader class and one of its methods?is the format of my XML file:

<?xml version="1.0" encoding="utf-8" ?>
<!-- MY_APP_NAME Saved Settings - Version 0.9.5.0 -->
<SearchSettings>

[code].....

View 14 Replies

VS 2010 XML Parsing Not From File?

Dec 2, 2011

Just a little problem; seemingly easy but doesn't seem quite so straightforward as it should be. I am pulling an XML file from a server using the web browser control and the using the DOM innertext property to assign the contents of that XML page to a variable.

I would like to be able to efficiently parse through this variable as if it were an XML file. I have posted the output below.I can work out how to load an XML file using the LoadXML method from a disc or URL but I would prefer to parse it from within the variable. I know this should be simple but I was wondering what the best class to use would be as the most efficient / easy way of parsing data.

I am basically looking to extract each of the details for each <application> into an array.

[Code]...

View 3 Replies

XML File Parsing Works On Win 7 But Not On Win XP?

Feb 18, 2011

I'm writing an application in VB.net 2010, using Visual Studio 2010 Pro on a Win 7 Computer. The test code works for me correctly. However when I ziped the project folder and sent it to a friend (who is using Visual Basic 2010 on an Win XP Computer), it did not work correctly.

While runing the program in debug, we found a section of that code reads an XML file to construct an object provides a different results on the two computers. I'm not sure why the same code would parse parts of same XML differently. Most of the XML parsed correctly on both computer, just a couple of sections provides the incorrect result on the XP Computer using VB 2010 Express.

Sample of XML that reads differently:

<players>
<min>2</min>
<max>2</max>

[Code]....

View 4 Replies

C# - Excel File Parsing / Scraping Using .NET

Jul 13, 2010

i am trying to parse an excel file. its structure is very complex. The possible way i know are.

Use Office introp libraries
Use OLEDB provider and read excel file in a dataset.

But the issue is of its complexity like some columns,cells or rows blank etc. What are the best possible ways to do this?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved