Skip to content

Commit

Permalink
Change imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Oct 31, 2022
1 parent 753e278 commit 78716f4
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 13 deletions.
3 changes: 2 additions & 1 deletion norma2/regexs/r_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/I6fr0x/1
re = r"^( ){0,}\/{0,1}\/\*"
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_declaration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/fBLUOp/2 (old)
# re = r"\w{1,}( \*{0,} {0,}\w{1,}(\[[0-9]{0,}\]){0,}){1,} {0,}= {0,}(([0-9]{1,})|(\".*\")|(\{.*\})|([&*]{1,}\w{1,})|(NULL)) {0,};{1}" # noqa: E501
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_empty.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/M7NU4a/1
re_end = r"\n[ \t\f]{0,}$"
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_for.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/q4jpdl/1
re = r"for(\s)?\(([\w\W\s]*?;){2}([\w\W\s]*?)\)\s{0,}(\{|;)"
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/kBFq4T/5
re = r"\w{1,}(\*{0,} \*{0,} {0,}\w{1,}(\[[0-9]{0,}\]){0,}){1,} {0,}\((((\w{1,} {0,}\n{0,}(\*{0,} \*{0,} {0,}\n{0,} {0,}\w{1,}(\[[0-9]{0,}\]){0,}){1,} {0,}\n{0,} {0,},{0,1} {0,}\n{0,} {0,}){0,})|( {0,}\n{0,} {0,}void {0,}\n{0,} {0,}))\) {0,}\n{0,}\{" # noqa: E501
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_if.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/ac4QIM/1
re = r"if {0,}\(([\s\S]*?\)) {0,}\{"
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_imperativ.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/Kybx1Z/1
re = r"^(.*?\\\n){0,}(.*);"
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/tp3bAf/1
re = r"#define \w{1,}(\((\w,{0,} {0,}){0,}\)){0,1} {0,}(.*\\\n){0,}(.*){1}"
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_prototype.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/DJ3cg4/1
re = r"\w{1,}( \*{0,} {0,}\w{1,}(\[[0-9]{0,}\]){0,}){1,} {0,}\((\w{1,} {0,}\n{0,}( \*{0,} {0,}\n{0,} {0,}\w{1,}(\[[0-9]{0,}\]){0,}){1,} {0,}\n{0,} {0,},{0,1} {0,}\n{0,} {0,}){0,}\) {0,}\n{0,};{1}" # noqa: E501
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/AUdkaY/1
re = r"(typedef \n{0,}){0,1} {0,}struct {0,}\n{0,} {1,}\w{1,} {0,}\n{0,} {0,}\{" # noqa: E501
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/O7MI5W/1
re = r"\"(.|\n)*?(?<!\\)\""
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_union.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/5j7SSI/1
re = r"(typedef \n{0,}){0,1} {0,}union {0,}\n{0,} {1,}\w{1,} {0,}\n{0,} {0,}\{"
Expand Down
3 changes: 2 additions & 1 deletion norma2/regexs/r_while.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import Optional

import regex
from regexs import regexs_class

from norma2.regexs import regexs_class

# https://regex101.com/r/6tCFWA/1
re = r"while {0,}\n{0,} {0,}\(([\s\S]*?\)) {0,}\n{0,} {0,}\{"
Expand Down

0 comments on commit 78716f4

Please sign in to comment.