trevorsummerssmith / vinge

Next level Vernor Vinge Automation. What?!
3 stars 0 forks source link

Regex refactor #2

Open trevorsummerssmith opened 12 years ago

trevorsummerssmith commented 12 years ago

Also make a 'regex' module. 'regex_parser' => ast. Make things more sane.

epurdy commented 12 years ago

I vote for

trevorsummerssmith commented 12 years ago

I think I'll add these changes. However, I want to keep the comments that talk about regexes (eg "We wish to manipulate probability distributions over the nodes of a Markov chain. ... Regexes are an intuitive way to specify such linear operators.").

But then just add some stuff that says, at the end of the regex.py module comment "However note that we wish to distinguish between three types of regexes: sensor, nexus and combinator".

Thoughts?

trevorsummerssmith commented 12 years ago

Actually I think I like 'regex' better than 'pattern'. More thoughts? @epurdy

epurdy commented 12 years ago

"regex" does sound better than "pattern", but at some point we should give it a new name, just so that it doesn't sound like a classical regular expression. I think they're strictly more powerful than regular expressions, and if they actually become common, we're going to want to distinguish between them.

I'm having trouble thinking of what to call it, though. "nexop" (nexus operator)? "semex" (semiotic expression)? "semop" (semiotic operator)? "gramex" (grammatical expression)? "gramop" (grammatical operator)?

If I had to choose any of those, I think I'd choose semex.