help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to construct a BNF for a language mechanically and incrementall


From: Peng Yu
Subject: Re: How to construct a BNF for a language mechanically and incrementally?
Date: Sat, 9 Jan 2010 11:32:04 -0600

On Sat, Jan 9, 2010 at 11:00 AM, John R. Levine <address@hidden> wrote:
>> I have never used soelim before. I have been looking for some
>> introductory material on it, but I don't find anything useful. (The
>> man page is too terse and hard for me to figure out how to use it if I
>> know nothing about it).
>
> The man page has a complete description of what soelim does.  It's a tiny
> trivial program.

I read this man page
http://linuxpakistan.net/man.php?query=soelim&type=2&section=1

I tried the following example (at the end). What are '.lf's for? Even
we get rid of '.lf' lines, it still seems inconvenient to me to
combined multiple .y files, because each .y file has 3 sections and
'soelim' will include a while file rather than a section of a file.
Also, adding '.so' in the .y file will make it harder to reader and
might break up indentation and syntax highlighting in text editors.
Would you please give me a very small example on how you handle
multiple .y files?




####### examples
$ cat text1.txt ; echo EOF
start
.so text2.txt
end
EOF
$ cat text2.txt ; echo EOF
in text2.txt
EOF
$ soelim text1.txt
.lf 1 text1.txt
start
.lf 1 text2.txt
in text2.txt
.lf 3 text1.txt
end




reply via email to

[Prev in Thread] Current Thread [Next in Thread]