Tagged Questions
2
votes
1answer
31 views
XML to Windows.Forms.Keys List
It took me a lot of poking around and unit testing to get the code to look like it is right now. So I have a XML file which in part looks like this
<FunctionKeys>
...
3
votes
1answer
84 views
How to make this BigRational parsing method more efficient?
I'm using the BigRational beta off the BCL CodePlex (bcl.codeplex.com), and I realized it had no parsing method. So I tried to write one. However, it's quite inefficient (5.5ms for a 254 character ...
1
vote
2answers
306 views
Messy c# code - can be improved? String Parsing
For various reasons, I'm parsing a string, this code will explain what I'm after:
string baseString = "This is a \"Very Long Test\"";
string[] strings = baseString.Split(' ');
...
2
votes
1answer
2k views
Query String Serializer
I have a ASP.NET Web Forms project, and I want to build calls to .aspx pages in a strongly-typed fashion. I ended up rolling my own serializer that takes simple structs and saves them to/loads them ...
3
votes
1answer
72 views
C# expression evaluator review request
I successfully created an expression evaluator in C#, and I would like to know if it works well, and what I can do to improve it.
class ExpressionEvaluator2
{
public enum Token
{
...
1
vote
3answers
280 views
Critique my parsing library interface
Update: I've realized that I've missed the goal of fluency completely. I have added another configuration interface now, which more closely meets what I originally desired. I've added this. Comments ...
2
votes
3answers
215 views
Best way to improve Compiler Code?
What is the best way to considerably decrease the size of the following code without sacrificing functionality, and to make it more readable, and well, make it look professional?
class Compiler
{ ...
3
votes
1answer
351 views
Best way to make parser code more readable and efficient?
I am optimizing the variable parser for my programming language, and also trying to make it more readable and concise (precedence: readabl e& concise > efficient). What is the best way to improve ...
2
votes
4answers
166 views
Speedily Read and Parse Data
As of now, I am using this code to open a file and read it into a list and parse that list into a string[]:
string CP4DataBase = "C:\\Program\\Line Balancer\\FUJI DB\\KTS\\KTS - CP4 - Part Data ...
6
votes
2answers
1k views
Same code to parse int, float, decimal?
I have a method to parse strings. It can be used to parse a float using a specific culture and then get a new string with a specific out-culture. The same applies to ints, doubles and decimals.
The ...
7
votes
2answers
610 views
Please help me find the bottleneck in my code
I'm making a scripting language parser and it's shaping up well but it takes is about 30ms to do 30 or so odd/even checks.
Profiler tells me that it's taking most of the time in the ...
10
votes
4answers
735 views
LL(1) tokenizer for LISP
I am trying to write a LISP interpreter in C#, so I started with a tokenizer. I haven't finished it yet (have to handle floating point numbers, symbols), but I already rewrote it two times because I ...
6
votes
1answer
369 views
I need help scrubbing this code down, parsing a file.
Note: This file is out of my hands. I
cannot change the format or type of
file I have to parse.
Here is some sample data that I'm trying to parse. This is information for just one player:
...
10
votes
8answers
1k views
Is this code good enough, or is it stinky? Parsing a file.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace DotNetLegends
{
public class LogParser
{
/// <summary>
...