Hello, I'm looking for a grammar written in BNF to convert a EBNF to a BNF grammar. Any hints/links are highly appreciated. Many thanks in advance Udo...
I've searched the GP site for a Python grammar but I did not find anything...then I searched this discussion and found that a LALR parser can not parse a...
axilmar, In the strictest sense, <bnf> and Gold are designed to work on 'context-free' systems, so the simple answer is that it could not handle levels of...
Hello axilmar, I've searched the GP site for a Python grammar but I did not find anything...then I searched this discussion and found that a LALR parser can...
Hello, I just want to know whether it's possible to remove a String from a Set, e. g. SET_Test = {Letter}{AlphaNumeric}* - 'MyString' Thanks and greetings Udo...
... LALR(1)-parsing systems can very well handle block-structured languages. Maybe you wanted to say line-based language---and that is not a property of the...
Hello, is there any common approach to determine blocks in a source file, e. g. ANYTEXT Block_Start ANYTEXT Block_End ANYTEXT Block_Start ANYTEXT Block_End ...
... No, currently it is not. But because of the maximal munching and proritizing strings of the lexer this is not a problem, because the lexer can simply...
... GOLD seems to be an overkill for your problem. Use awk/gawk/mawk. From the gawk-manual: "A range pattern is made of two patterns separated by a comma, of...
Hi, I have a hand written scannar and i want to use GOLD Parser. Is there any hook or api to connect it? I think i can do it if I write my own engine. Is my...
Hello Manfred, ... GOLD seems to be an overkill for your problem. Use awk/gawk/mawk. From the gawk-manual: "A range pattern is made of two patterns separated...
... Your source format can roughly be described by this regular expression: {char}*( blockOpen char* blockClose char*}* If that is all you want to check, you...
... The interface of the GOLD system are the .cgt-files accompanied by a processor, which can insert the information from the .cgt into a template, thereby...
Hello, it seems not to be possible to define sets which result in an empty string. Is there any workaround? Thanks and greetings Udo [Non-text portions of this...
... Empty Strings match multiple times at every character boundary of the source and on empty sources as well. Why should one want such recognition?...
Hello Manfred, thanks for you help, but beginnings are always difficult, so some additional questions... ... {char}*( blockOpen char* blockClose char*}* ...
Hello Manfred, thanks for you help, but beginnings are always difficult, so some additional questions... ... {char}*( blockOpen char* blockClose char*}* \---/...
... I wasn't nitpicking with the syntax --- sorry. ... Yeah, I meant it this way. ... + I see that you got the idea. Of course I did not think of the epsilon ...
Hello again Manfred, o u r goal isn't far away, many thanks for your support. ... "Start Symbol" = <Text> BLOCK_Open = 'begin' BLOCK_Close = 'end' Structure =...
... Sadly the goal got out of sight, when approaching. ... The epsilon-problem is, that the lexer is not allowed zo return an epsilon :-) "!epsilon" is a...
Hello Manfred, ... really not so happy with your comment... ... I think I defined the task. Anyway, I assume it's not an easy to solve problem, but a typical...
... Sorry, you did define some aspects of your task, but there remain some degrees of freedom. I filled one of that with the requirement for a shortest...
I am currently working on a project which uses strong named assemblies. In order for me to use the GOLD parse (and the Calitha C# version of the Engine) I need...
... Your problem seems to be, that now identifiers also end in spaces, i.e. 'tag id' is another identifier than 'tag id ' or 'tag id '. But your tests only...
... Ah ha. I suspected that after more consideration. I was wishing to adjust the Alphanumeric_plus to include spaces 'within; but NOT at the END of an id tag....