keyboardlayouteditor

[Fork] Archive of the keyboard layout editor.
git clone https://git.jojolepro.com/keyboardlayouteditor.git
Log | Files | Refs | README | LICENSE

commit 407a12f7684b227d06716e35ab643ffaf732c125
parent c4cf274cd3e033cd612cb4ccf074148f491d0b79
Author: simos.lists <simos.lists@70737e48-4f4a-0410-8df8-290828ad50c4>
Date:   Fri,  9 May 2008 11:06:11 +0000

0. Grammar now outputs generic input file.

git-svn-id: http://keyboardlayouteditor.googlecode.com/svn/trunk@13 70737e48-4f4a-0410-8df8-290828ad50c4

Diffstat:
MXKBGrammar/XKBGrammar.g | 2+-
MXKBGrammar/XKBGrammarLexer.py | 2+-
MXKBGrammar/XKBGrammarLexer.pyc | 0
MXKBGrammar/XKBGrammarParser.py | 4++--
MXKBGrammar/XKBGrammarParser.pyc | 0
5 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/XKBGrammar/XKBGrammar.g b/XKBGrammar/XKBGrammar.g @@ -80,7 +80,7 @@ section : preamble sectionmaterial ; preamble : attribute_xkb+ sectionname=quotedstring - { print '\%(sname)s {' \% { "sname": $sectionname.text } } + { print '\%(sectionname)s {' \% { "sectionname": $sectionname.text } } ; quotedstring returns [value] diff --git a/XKBGrammar/XKBGrammarLexer.py b/XKBGrammar/XKBGrammarLexer.py @@ -1,4 +1,4 @@ -# $ANTLR 3.0.1 XKBGrammar.g 2008-05-09 12:01:09 +# $ANTLR 3.0.1 XKBGrammar.g 2008-05-09 12:05:39 from antlr3 import * from antlr3.compat import set, frozenset diff --git a/XKBGrammar/XKBGrammarLexer.pyc b/XKBGrammar/XKBGrammarLexer.pyc Binary files differ. diff --git a/XKBGrammar/XKBGrammarParser.py b/XKBGrammar/XKBGrammarParser.py @@ -1,4 +1,4 @@ -# $ANTLR 3.0.1 XKBGrammar.g 2008-05-09 12:01:09 +# $ANTLR 3.0.1 XKBGrammar.g 2008-05-09 12:05:38 from antlr3 import * from antlr3.compat import set, frozenset @@ -302,7 +302,7 @@ class XKBGrammarParser(Parser): self.adaptor.addChild(root_0, sectionname.tree) #action start - print '%(sname)s {' % { "sname": self.input.toString(sectionname.start,sectionname.stop) } + print '%(sectionname)s {' % { "sectionname": self.input.toString(sectionname.start,sectionname.stop) } #action end diff --git a/XKBGrammar/XKBGrammarParser.pyc b/XKBGrammar/XKBGrammarParser.pyc Binary files differ.