Marco Gerards wrote:



I didn't know that bison had such buffer.
It doesn't. This buffer is created by lexer in my example.
And menu is always stored unparsed and parsed only just before

execution. Than editing is no problem.

I think you have to parse it immediately and both store parsed and the
unparsed code.  After editing you do the same again.

I see 2 approaches:
1) Parse menu commands right before executing
2) Parse them directly and reparse after editing.
I think 1st one is cleaner because the parser will be at the same place after editing or before

This solution is required if you want to be able to edit the complete
script instead of just the separate menu entries.  I think this is not
interesting, but if someone wants to know I can say more about this.
I think also. Because theese modifications are lost after boot they are generally modified only to boot one time an OS with specifical parameters and you don't need scripts for this. Vladimir 'phcoder' Serbinenko


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to