diff options
author | Juerg Billeter <j@bitron.ch> | 2008-04-13 09:25:25 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-04-13 09:25:25 +0000 |
commit | eba85accb7d719808c26d2624ed04d81c4b7c3ab (patch) | |
tree | b9b54e3b3e790cef880a2c0a84dda745f44e5fef /vala/valasourcelocation.vala | |
parent | 20423931a22cb48d006bbcaae528536ede310ede (diff) | |
download | vala-eba85accb7d719808c26d2624ed04d81c4b7c3ab.tar.gz |
Replace generated Vala scanner and parser by handwritten classes
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/valaassignment.vala,
vala/valabinaryexpression.vala, vala/valaclass.vala,
vala/valanamespace.vala, vala/valaparser.vala,
vala/valascanner.vala, vala/valascope.vala,
vala/valasourcefile.vala, vala/valasourcelocation.vala,
vala/valatokentype.vala, vala/valatuple.vala,
vala/valaunaryexpression.vala, vala/valaunresolvedtype.vala:
Replace generated Vala scanner and parser by handwritten classes
svn path=/trunk/; revision=1194
Diffstat (limited to 'vala/valasourcelocation.vala')
-rw-r--r-- | vala/valasourcelocation.vala | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vala/valasourcelocation.vala b/vala/valasourcelocation.vala new file mode 100644 index 000000000..374a6837f --- /dev/null +++ b/vala/valasourcelocation.vala @@ -0,0 +1,39 @@ +/* valasourcelocation.vala + * + * Copyright (C) 2008 Jürg Billeter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Author: + * Jürg Billeter <j@bitron.ch> + */ + +using GLib; + +/** + * Represents a position in a source file. + */ +public struct Vala.SourceLocation { + public char* pos; + public int line; + public int column; + + public SourceLocation (char* _pos, int _line, int _column) { + pos = _pos; + line = _line; + column = _column; + } +} + |