|
Home Pages Pidgin Azarennya (S|N) Mac Thesaurus Reference ToDo Colino Food Local Blogs: BadIdea Rachel RIAA Cult: Clambake Infidels Fi: Arda StarTrek Trek/Wars Film: IMDB D Harry Jabootu Kyle Fun: Agony ICanHas? ObSkills Snopes Lang: ZBB Vreleksá AwkWords Omniglot Scriptorium More... Local: Maps Map MyWeb Metro (map) FC Weather GoWhere? GGWash DC Arlington Reston Beyond Bacon Pix: Deviant Places Renderosity Blender Artists Pol: Anchoress Lizards Lucianne Strata WAwakes Sci: SmallThings Darwin AntiEvo Skeptics EvC BAUT Physics /.Sci Junk Panda Pharyngula Mags AmSci NatG Space X86: OSX86 ArsTech OSNews TUAW Dev PowWeb PHP Webmaster Coding Walkers Prog: PHP JS Toolbox Unobt Compress RegExp (test) Lint SQL Cocoa Builder Dev Apple BBS Userland Faqin Science/Tech: Engadget Thunderbolts Icecap Centauri NewSci Gizmodo co2sci ClimateDebate SciDaily Nrich NatGeog Math CreatClaims GoodBadMath CurrentEvents: OrigSig Flamingo FlopAces ImmigProf ~J~ MyVRWC NewsGroper Pal2Pal Sanity Simon TCS Toldjah Blogs... Tools: Calculator AsciiArt XMLVal FunStuff: Pictures: Photobucket (eg Dubai) Videos: YouTube Subtitler InterestingThings: LibraryThing FlashCards GoogleDocs Wowio Bubbl.us Colemak Audible PodioBooks WonderfulInfo BooksOnline AboutUs.org |
Colino /
Colino("Colino" is the Italian word for a strainer, which is more or less the function of my software -- to "strain out" the records you don't want to see. Besides, I just thought the word was cool. :) See also: Code) I am working on Colino because I want to keep notes on my computer in a certain way.
More than one version of Colino Clearly I'll be writing my record extraction software at least twice -- once in PHP, to be run from the website, and once again in JavaScript, to be run from within EmEditor. (I might also decide one day to write a UNIX-style CLI version in C.) So I need to define exactly what the program does, so that each version of the program does the exact same thing. Input parameters The software takes the following as input:
The software sends to output each record that matches the criteria. Record-file format A record file is simply a text file, with certain lines used to mark the boundaries between records. A record is simply a sequence of lines of text. Some of these lines may be freeform fields.
These conventions were selected to make it easy to use markup (Markdown, Textile, etc.) within each record. Criterion-string format This is an example of a string of criteria: tactics "long days" year > 1796 year < 1837 "name of author" [ Don This specifies the following:
Commas make the string more readable, but the software ignores them: tactics, "long days", year > 1796, year < 1837, "name of author" [ Don The rules for parsing the criteria string are simple:
The operators recognized are: = equal to == equal to <> not equal to < less than <= less than or equals > greater than >= greater than or equals [ begins with ] ends with ^ contains Any of these operators may be preceded by ! to invert the operator's meaning. Thus != means "not equal to", !^ means "does not contain", etc. On keeping everything in one big text file, see also: |