Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

web parser plugin for VID

 [1/4] from: inetw3:mindspring at: 19-May-2001 20:48


Hi Rebolers, I've tried unsucessfully to write a parser for VID to html for IE/NS/Dhtml/Java. I wrote the parser, that was the easy part. Problem? How do i find consecutive words in the %Rebol.r document, not just the first? I've tried foreach/forall/any. Well my Rebol User Guide says to stop this sort of problem, use an Oject but my talents are'nt ready for that yet, i don't fully understand or even know how to do that yet. example... page: read %"/C/Program Files/Rebol/view/parceme.r" reblet: make block![] parse page [ to "view" (append reblet {<REBLET VERSION="1.1"> <PROPERTIES> SIZE</PROPERTIES>} ) to "Text" (append reblet {<TEXTNAME="Title" blah blah blah... the foreach reb reblet [ thing append reb... no go I have done.... to "this" begin: thru "that"ending: (change/part begin {<"Button" >}ending) I have done.... parse page [any [to "Button" mark: thru "^/" (append reblet index? mark)... nogo I can get the first occurences of VID words parsed but not the second third forth etc. that should be found in the %.r Any thoughts appreciated. After this part once the parser java/Activex source goes open source then i can give it out. RT will probably build a browser plugin one day, but until then, i'll peck away on my... "Packered Bell 133mhz"

 [2/4] from: agem:crosswinds at: 20-May-2001 3:59


[rebol [title: "pad" comment: {don't know if i understand, but} ] source1: { view layout [text "ok, source works" button "continue"[unview]] } do source1 parse source1 [thru "layout" p1:] both: load/next p1 print [{complete source} mold copy/part p1 both/2] print {stepwise} block: first both forall block[ probe block/1 probe block/2 ; following element here to.. block: next block ;to skip something print "---" ] ; or look for block-parse.. ; but it will get complicated (colors, size .. between) ] -Volker
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 20.05.01, 02:48:11, schrieb "Daniel Murrill" <[inetw3--mindspring--com]> zum Thema [REBOL] web parser plugin for VID:

 [3/4] from: gjones05:mail:orion at: 20-May-2001 5:27


From: "Daniel Murrill"
> I've tried unsucessfully to write a parser for VID > to html for IE/NS/Dhtml/Java. I wrote the parser, > that was the easy part. Problem? How do i find > consecutive words in the %Rebol.r document, > not just the first? I've tried foreach/forall/any.
Hi, Daniel, I hope that I am not missing the point, but have a look at the way that 'layout is implemented with "source layout". In essence it appears as though RT has defined vid-words and vid-styles. Then it names the layout block definition as 'specs. Then it uses a while not tail? specs with an enclosed forever loop. Within the forever loop, logic rules increment the specs block. Hope this gives you some ideas. --Scott Jones

 [4/4] from: dmurrill:mindspring at: 20-May-2001 21:24


Thanks for the good ideas Volker and GS Jones. You both gave me something i can work with. Appreciate it very much.