Reputation
3,103
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
10 25
Newest
 Yearling
Impact
~172k people reached

Jun
6
awarded  Yearling
Mar
20
awarded  Pundit
Mar
20
comment What is the name of a function that takes no argument and returns nothing?
I like Procedure from my pascal days. A Procedure has side effects, a Function does not. Since you don't return a value, the only thing it could do is have a side effect.
Dec
6
awarded  Revival
Sep
24
awarded  Autobiographer
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.