2,984 reputation
823
bio website
location New Albany, IN
age 25
visits member for 3 years, 1 month
seen Jun 6 at 18:26

I'm a builder. Specifically, I build solutions to problems using code.

But when I'm not happily immersed in something, I (board and video)game, read, and box. Come on down to Terry Middleton's boxing and say hello if you're interested.

Here's my career's page, if you're interested.


Jun
6
awarded  Yearling
May
2
comment Lexing: One token per operator, or one universal operator token?
And on a related note, if they are really the same token, I.E. MATH, then the lexer can return that token for various different regex matches.
Mar
21
awarded  Notable Question
Oct
22
accepted Can the csv format be defined by a regex?
Oct
22
comment Can the csv format be defined by a regex?
Yup, that's been my experience as well. Any attempt to fully encapsulate more than a very simple CSV pattern runs into these things, and then you ram up against both the efficiency problems and complexity problems of a massive regex. Have you looked at the node-csv library? It seems to validate this theory as well. Every non trivial implementation uses a parser internally.
Oct
21
awarded  Nice Question
Jul
30
awarded  Nice Answer
Jul
26
awarded  Popular Question
Jun
6
awarded  Yearling
Feb
25
awarded  Constituent
Feb
18
awarded  Caucus
Feb
5
awarded  Nice Answer
Nov
13
awarded  Nice Answer
Sep
28
comment Is there any reason to use C++ instead of C, Perl, Python, etc.?
And this, ladies and gentlemen, is why lex/yacc exists. Same reasoning, I never realized parts of c++ fell into the same code generation philosophy. I'll have to look at it again sometime.
Sep
27
comment Can the csv format be defined by a regex?
No problem. I will be curious what you come up with.
Sep
27
comment Can the csv format be defined by a regex?
This is my position, having run into these horrible excuses for "data transfer" in the past. The only thing that properly handled them was a parser, pure regex broke every few weeks.
Sep
27
comment Can the csv format be defined by a regex?
Nice answer, but if I run perl -pi -e 's/"([^\"]|\\\\|\\")*"/yay/' and pipe in "I have here an item,\" that is a test\"" then the result is `yay that is a test\"". Methinks your regex is flawed.
Sep
27
revised Can the csv format be defined by a regex?
added 4 characters in body
Sep
27
comment Can the csv format be defined by a regex?
Sure, it can still be parsed, but a regex is a tokenizer, not a parser. That is the question, can csv be handled just by a tokenizer and not a parser a la ANTLR or BISON.
Sep
27
revised Can the csv format be defined by a regex?
added 257 characters in body