lucidaflow 1.0.8__py3-none-any.whl → 1.0.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lucidaflow might be problematic. Click here for more details.

lucidaflow/__main__.py ADDED
@@ -0,0 +1,21 @@
1
+ # src/lucidaflow/__main__.py
2
+ import sys
3
+ from .cli import run_file, start_repl
4
+
5
+ def main():
6
+ """
7
+ Verifica os argumentos da linha de comando e decide se executa
8
+ um ficheiro ou inicia o REPL.
9
+ """
10
+ # sys.argv é a lista de argumentos da linha de comando.
11
+ # sys.argv[0] é o nome do módulo, o resto são os argumentos.
12
+ if len(sys.argv) > 1:
13
+ # Se um argumento foi passado, assumimos que é um nome de ficheiro
14
+ script_file = sys.argv[1]
15
+ run_file(script_file)
16
+ else:
17
+ # Se nenhum argumento foi passado, inicia o REPL
18
+ start_repl()
19
+
20
+ if __name__ == "__main__":
21
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lucidaflow
3
- Version: 1.0.8
3
+ Version: 1.0.9
4
4
  Summary: Uma linguagem de script moderna, extensível e com tipagem gradual, implementada em Python.
5
5
  Author-email: Marco Lago <marconeed2@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/marconeed/Lucida-Flow
@@ -1,4 +1,5 @@
1
1
  lucidaflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ lucidaflow/__main__.py,sha256=TbiTNQbh64tTOVxiYTL9ua0TFykaY0pZxu3QyaR5aZI,649
2
3
  lucidaflow/cli.py,sha256=tix8le1L_ps4D93GxZCvzquRlWUfVBkqnkjXyiHQrj8,2820
3
4
  lucidaflow/lucida_analyzer.py,sha256=q8lvfUI2FbG5hfv_34c0VTnT-JNd6MjkPPmkMw1SDPA,50799
4
5
  lucidaflow/lucida_ast.py,sha256=TeomKhErVrXD9gdx3NpBivrXolK5j7qNWx-dbrlHHas,12302
@@ -12,9 +13,9 @@ lucidaflow/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
13
  lucidaflow/lib/dado.py,sha256=7rHJ1cXVCOmQ5x5sxArRhxSk-yCED7K1jXLCK1dSqgs,1145
13
14
  lucidaflow/lib/json.py,sha256=ZUHEBVAB6brH988u6zNQaN3ZB7SWOZ8iJkXYf8q9QsQ,1475
14
15
  lucidaflow/lib/web.py,sha256=lmzNgV2stcytsD6JGEuEdOs4Db5y8cUkrUx9EOeyRfk,1122
15
- lucidaflow-1.0.8.dist-info/licenses/LICENSE,sha256=Jh84joCKoVDVazEsQ-GeXr6K336bDgu5mGcjgFKM-RI,1088
16
- lucidaflow-1.0.8.dist-info/METADATA,sha256=98P3NxquDQyh_Yemair-5oYGrdhJAX0SrMIlOgA2VUY,64557
17
- lucidaflow-1.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- lucidaflow-1.0.8.dist-info/entry_points.txt,sha256=pHHq39ZoRw6PkeIohtiwf6vIBAvRpfwOVn5Tr9-2Rv8,51
19
- lucidaflow-1.0.8.dist-info/top_level.txt,sha256=QAnM_ZQla0_f0t2FDkQ_U1faUfaZ-rcS_L6C5JYG8T4,11
20
- lucidaflow-1.0.8.dist-info/RECORD,,
16
+ lucidaflow-1.0.9.dist-info/licenses/LICENSE,sha256=Jh84joCKoVDVazEsQ-GeXr6K336bDgu5mGcjgFKM-RI,1088
17
+ lucidaflow-1.0.9.dist-info/METADATA,sha256=PV6uCEQhvftKS_NFz0jssb4j29YJuE3EXoZ2v35-HIg,64557
18
+ lucidaflow-1.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
+ lucidaflow-1.0.9.dist-info/entry_points.txt,sha256=pHHq39ZoRw6PkeIohtiwf6vIBAvRpfwOVn5Tr9-2Rv8,51
20
+ lucidaflow-1.0.9.dist-info/top_level.txt,sha256=QAnM_ZQla0_f0t2FDkQ_U1faUfaZ-rcS_L6C5JYG8T4,11
21
+ lucidaflow-1.0.9.dist-info/RECORD,,