comparison Generic/fiebdc.py @ 19:bea86fd8dfc6

- in float
author Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es>
date Wed, 03 Sep 2014 12:14:04 +0200
parents 878159a13494
children f5ec50b625d1
comparison
equal deleted inserted replaced
18:878159a13494 19:bea86fd8dfc6
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 ## File fiebdc.py 3 ## File fiebdc.py
4 ## This file is part of pyArq-Presupuestos. 4 ## This file is part of pyArq-Presupuestos.
5 ## 5 ##
6 ## Copyright (C) 2010-2013 Miguel Ángel Bárcena Rodríguez 6 ## Copyright (C) 2010-2014 Miguel Ángel Bárcena Rodríguez
7 ## <miguelangel@obraencurso.es> 7 ## <miguelangel@obraencurso.es>
8 ## 8 ##
9 ## pyArq-Presupuestos is free software: you can redistribute it and/or modify 9 ## pyArq-Presupuestos is free software: you can redistribute it and/or modify
10 ## it under the terms of the GNU General Public License as published by 10 ## it under the terms of the GNU General Public License as published by
11 ## the Free Software Foundation, either version 3 of the License, or 11 ## the Free Software Foundation, either version 3 of the License, or
101 "control_tilde" : re.compile(u"((\r\n)| |\t)+~"), 101 "control_tilde" : re.compile(u"((\r\n)| |\t)+~"),
102 "control_vbar" : re.compile(u"((\r\n)| |\t)+\|"), 102 "control_vbar" : re.compile(u"((\r\n)| |\t)+\|"),
103 "control_backslash" : re.compile(ur"((\r\n)| |\t)+\\"), 103 "control_backslash" : re.compile(ur"((\r\n)| |\t)+\\"),
104 "valid_code" : re.compile(u"[^A-Za-z0-9ñÑ.$#%&_]"), 104 "valid_code" : re.compile(u"[^A-Za-z0-9ñÑ.$#%&_]"),
105 "special_char": re.compile(u"[#%&]"), 105 "special_char": re.compile(u"[#%&]"),
106 "no_float": re.compile(u"[^0-9.]"), 106 "no_float": re.compile(u"[^\-0-9.]"),
107 "formula" : re.compile(u".*[^0123456789\.()\+\-\*/\^abcdp ].*"), 107 "formula" : re.compile(u".*[^0123456789\.()\+\-\*/\^abcdp ].*"),
108 "comment": re.compile(u"#.*\r\n"), 108 "comment": re.compile(u"#.*\r\n"),
109 "empty_line": re.compile(ur"(\r\n) *\r\n"), 109 "empty_line": re.compile(ur"(\r\n) *\r\n"),
110 "space_before_backslash" : re.compile(ur"( )+\\"), 110 "space_before_backslash" : re.compile(ur"( )+\\"),
111 "space_after_backslash" : re.compile(ur"\\( )+"), 111 "space_after_backslash" : re.compile(ur"\\( )+"),