Re (2): [Oberon] PC.Compile singularities
Hi Patrik, "Patrik Reali" <reali@acm.org> wrote:
REPEAT Texts.Read(r, ch) UNTIL r.eot OR ((r.lib # NIL) & (r.lib IS Fonts.Font));
the objects are just discarded, which is fine, but the "char index" does not increase, so you get the errors reported before their actual position. I have changed those lines with
This problem is quite a hassle: I'm trying to make the whole Paco an Aos application (i.e. it can be invoked from the Aos command line without having to load the whole Oberon IDE), but most of the texts we are using are Oberon texts. For this reason, the main module of the compiler has to understand the oberon text format (would require to duplicate all the text parsing code) or rely on some external libraries (e.g. AosTexts). Obviously the problem is not to lose the synchronization with the text (for emitting error positions). I guess I had a similar problem with my version control stuff. In VCSBase and DAVDeltavBase I'm using Oberon Texts which aren't available on Bluebottle. So I sort of "bluebottled" them. On ketchup:FAT:/es/httproot/dav you can find es.DAVObjects.Mod, es.DAVFonts.Mod and es.DAVTexts.Mod which especially don't depend on Native Files any more. I'm not sure but perhaps this could be useful to you.
Cheers, Edgar -- edgar@edgarschwarz.de "http://www.edgarschwarz.de" "http://www.edgar-schwarz.de/forum/oberon" Running Active Oberon Make it as simple as possible, but not simpler. Albert Einstein
Hi Edgar,
I guess I had a similar problem with my version control stuff. In VCSBase and DAVDeltavBase I'm using Oberon Texts which aren't available on Bluebottle. So I sort of "bluebottled" them. On ketchup:FAT:/es/httproot/dav you can find es.DAVObjects.Mod, es.DAVFonts.Mod and es.DAVTexts.Mod which especially don't depend on Native Files any more. I'm not sure but perhaps this could be useful to you.
I already switcher to the AosTexts.UnicodeText of Thomas. There is a converted in AosTextUtilities (LoadOberonText). Thanks anyway! -Patrik
Hello Edgar, I've been a little off focus on the DAV port, but I'm looking at it again. Now I've got XML just about ported, but it's other BlueBottle dependencies that have be held up like DAVFonts. Specifically DAVFonts imports module Kernel. Most of what Kernel does in DAVFonts seems to be doable with Out.String and Out.Ln, but there is a call to Kernel.GetConfig: PROCEDURE Init; VAR s: ARRAY 8 OF CHAR; BEGIN FontId := Objects.LibBlockId; NEW(theChar); Kernel.GetConfig("FontConv", s); conv := s[0] # "0"; Objects.Register("Fnt", New) END Init; What's the purpose of this code, and is it needed on non-BlueBottle systems? Regards, John M. Drake --- Edgar@EdgarSchwarz.de wrote:
I guess I had a similar problem with my version control stuff. In VCSBase and DAVDeltavBase I'm using Oberon Texts which aren't available on Bluebottle. So I sort of "bluebottled" them. On ketchup:FAT:/es/httproot/dav you can find es.DAVObjects.Mod, es.DAVFonts.Mod and es.DAVTexts.Mod which especially don't depend on Native Files any more. I'm not sure but perhaps this could be useful to you.
Cheers, Edgar
-- edgar@edgarschwarz.de "http://www.edgarschwarz.de" "http://www.edgar-schwarz.de/forum/oberon" Running Active Oberon Make it as simple as possible, but not simpler. Albert Einstein -- Oberon@inf.ethz.ch mailing list for ETH Oberon and related systems http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
participants (3)
-
Edgar@EdgarSchwarz.de -
John Drake -
Patrik Reali