Commit graph

5211 commits

Author SHA1 Message Date
Александр Земляк b8bda89f0f
Исправление div (//) и mod (%) для SPython (#3384)
* Fix div and mod in SPython

* Fix generic type names search in SPython symbol table

* Small fixes

* Add few checks in Intellisense

* Add comments about units compilation order
2026-02-02 21:14:27 +03:00
Mikhalkovich Stanislav 9606f1ece4 DataFrame в CompilationSamples 2026-02-02 18:07:44 +03:00
Mikhalkovich Stanislav 740f18362a 3.11.1.3743 2026-02-02 14:19:47 +03:00
Александр Земляк 2c30b73b08
SPython: неявное преобразование int в bool и bool в int (#3383)
* Implement bool to int and int to bool implicit conversion for SPython

* Change "and", "or" and "not" operations to be logical in SPython

* Add standard functions' overloads (all, any, sum)
2026-02-02 12:01:18 +03:00
Mikhalkovich Stanislav dad4bf4f4b Стандартный модуль DataFrameABC 1.0 2026-02-02 11:43:34 +03:00
Mikhalkovich Stanislav 69bed481db Поправил удаление exe файла после окончания программы - не всегда удалялось 2026-01-30 14:55:22 +03:00
Mikhalkovich Stanislav 85cda2b2f7 Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet 2026-01-29 21:38:59 +03:00
Mikhalkovich Stanislav 159a2e88e2 Пересобрал Help 2026-01-29 21:38:42 +03:00
Александр Земляк b23f9c96d0
Деактивация кнопок, связанных с Intellisense, для языков без Intellisense + разделение ILanguageInformation на два интерфейса (#3378)
* Refactor language information classes

* Implement SimpleLanguageInformation abstract class

* Move some properties to SimpleLanguageInformation

* Implement format and debug buttons disabling if Intellisense is not supported for current language

* Add Intellisense available check in FormsExtensions to deactivate menu items if needed

* Change function interfaces in VisibilityService

* Replace CodeCompletionController.CurrentParser null checks with IntellisenseAvailable method call

* Refactor IParser and BaseParser to deduplicate code

* Fix BuildTreeInSpecialMode in SPythonParser

* Add SimpleParser class for new languages without Intellisense

* Delete duplicate SetDebugButtonsEnabled function

* Add Intellisense available check in RunService when attaching debugger

* Delete inner check in SetDebugButtonsEnabled to improve architecture

* Change CurrentParser property in CodeCompletion to be CurrentLanguage

* Divide ILanguageInformation into two interfaces (creating new ILanguageIntellisenseSupport)

* Fix LanguageIntellisenseSupport initialization in BaseLanguage

* Fix RunService fictive_attach logic

* Disable Intellisense parsing for languages without Intellisense support

* Add DefaultLanguageInformation abstract class

* Add default implementation for SetSemanticConstants in BaseLanguage

* Simplify IParser interface

* Update developer guide documentation
2026-01-27 22:25:28 +03:00
Mikhalkovich Stanislav 333201895f Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet 2026-01-27 22:15:23 +03:00
Mikhalkovich Stanislav 8100f61e00 RussianCities.txt 2026-01-27 22:09:12 +03:00
Sun Serega e8ed35095a
fix ArrFill in help (#3382) 2026-01-27 20:55:23 +03:00
Mikhalkovich Stanislav bb6cc43250 SPython стандартная библиотека добавил чуть 2026-01-22 13:23:35 +03:00
Mikhalkovich Stanislav 4760aa02d7 Везде в location убрал document - заменил его на непосредственно file_name 2026-01-17 23:26:40 +03:00
Александр Земляк fed0786795
Add basic support for first_assignment_defines_type in Intellisense (#3376) 2026-01-16 23:06:38 +03:00
Александр Земляк 42d7ca97a3
Рефакторинг визитора SPython и исправление global statetement (#3375)
* Delete nameTypes dictionary in SymbolTable

* Refactor SymbolTableFillingVisitor

* Disallow dotted idents in global statement
2026-01-16 21:51:17 +03:00
Александр Земляк cb09e2340f
Удаление supportedProjectFiles из Compiler и настройка использования SPython в проектах (#3374)
* Set up creating SPython projects

* Delete SupportedSourceFile class in Compiler

* Implement GetUnitTemplate function for SPython
2026-01-16 20:13:20 +03:00
Mikhalkovich Stanislav 834845213b Добавил TurtleABC в стандартные модули для Mono 2026-01-15 15:52:32 +03:00
Mikhalkovich Stanislav f5557fc8cf Улучшил RemiteCompiler - убрал утечки по совету DeepSeek 2026-01-15 10:07:23 +03:00
AlexanderZemlyak 9b3937cb03 Fix range with step function in SPythonSystem 2026-01-13 12:28:57 +03:00
Александр Земляк 51e4ae050a
Перемещение модулей SPython в Lib\SPython (#3371)
* Replace languageCaseSensitive by languageName data in PCU and caseSensitive parameters in Compiler functions

* Implement SearchDirectories filling in Compiler and move SPython standard modules to their new directory

* Implement search using current language extension first in Compiler

* Delete LibForVB folder and update TestRunner to support different Lib dirs

* Update installer scripts to create separate Lib folder for SPython

* Take into account Lib dirs not found

* Delete supportedSourceFiles variable in Compiler

* Delete unused functions from LanguageIntegrator
2026-01-13 08:20:13 +03:00
Александр Земляк d7a81d312c
Uncomment RebuildStandartModulesSPython.pas compilation in bat files (#3373) 2026-01-06 19:52:19 +03:00
Mikhalkovich Stanislav 9400fa52f8 Вернул RebuildPython 2026-01-06 19:10:48 +03:00
Mikhalkovich Stanislav 5b17f21114 В GenerateAllSetups убрал создание стандартных модулей SPython - это вызывало ошибку 2026-01-05 21:53:18 +03:00
Александр Земляк 72e40bf4e9
Add first_assignment_defines_type field to Tree.cs (#3370) 2026-01-04 15:05:57 +03:00
samuraiGH 43f02326f2
fix incorrect condition (#3369) 2026-01-03 21:06:42 +03:00
Александр Земляк 52c9e7182b
Добавление компиляции RebuildStandartModulesSPython.pas в bat файлы (#3368)
* Add RebuildStandartModules SPython.pas compilation in bat files

* Update gitignore in ReleaseGenerators
2026-01-03 20:54:32 +03:00
Mikhalkovich Stanislav 2d09016310 GenerateAllSetups восстановил 2026-01-03 01:04:53 +03:00
Mikhalkovich Stanislav 531c729e0f Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet 2026-01-02 21:03:01 +03:00
Александр Земляк c33ba11b15
Fix assign cloning in SPython visitor (#3367) 2026-01-02 19:16:52 +03:00
Mikhalkovich Stanislav 2ca853af30 WeifenLuo
WeifenLuoLinux

перенесены в Libraries
2026-01-02 13:31:59 +03:00
Mikhalkovich Stanislav 34f05622a7 Восстановил _NewAppIcons 2026-01-02 13:07:46 +03:00
Mikhalkovich Stanislav 210b15194a Перенос папки InteractiveDataDisplay в Utils 2026-01-02 12:58:59 +03:00
Mikhalkovich Stanislav 2b72dd1142 2026 2026-01-02 12:36:47 +03:00
Mikhalkovich Stanislav 0155134ab4 Перенес _NewAppIcons в Utils 2026-01-02 12:22:19 +03:00
Mikhalkovich Stanislav 7fc176f854 Удален _ParsePABC1 2026-01-02 12:16:36 +03:00
Mikhalkovich Stanislav eaebd483b8 Удалил папку _Presentations 2026-01-02 11:57:14 +03:00
Mikhalkovich Stanislav 9506d19493 Исправлена константа pi в math.pys 2026-01-02 11:15:09 +03:00
Mikhalkovich Stanislav 8de8af7320 NodesGenerator - отключил генерацию ненужного hierarchyVisitor
GenegateAllSetups - отключил тесты SPython - не проходят на некоторых компьютерах
2026-01-02 10:58:07 +03:00
Mikhalkovich Stanislav 7549262e9b Убрана зависимость Localization от Windows.Forms.dll 2026-01-01 20:30:25 +03:00
Mikhalkovich Stanislav 70fc798dd6 GraphWPF DrawImageDC 2025-12-31 21:43:58 +03:00
Александр Земляк 17f6a9b956
Spython test suite (#3362)
* Reorganize files in TestSuite dir for multiple languages

* Add SPython samples to TestSuite

* Update TestRunner to support multiple languages

* Delete dll files accidentally pushed

* Update .gitignore

* Revert "Delete dll files accidentally pushed"

This reverts commit 62bcba2b821d58ae51ec98e9dadcf621bb0fc003.

* Update testing dir path in Testing.cs

* Improve TestRunner output

* Add random module and it's usage sample

* Reorganize gitignore files

* Move pascal tests back to TestSuite and create new TestSuiteLanguagePlugins folder for SPython

* Revert "Update testing dir path in Testing.cs"

This reverts commit 7d94eafb25292421bce8315520b4f6a0de001bbd.

* Revert crlf changes in pascal tests

* Test changes of _RebuildReleaseAndRunTestsForGitHubActions.bat

* Revert "Test changes of _RebuildReleaseAndRunTestsForGitHubActions.bat"

This reverts commit 234ceae3e3a339fbc68a6170e2bd201dab14d67d.

* Test changes in StorageLocationPicker

* Another test changes in StorageLocationPicker.cs

* Rename LanguagePlugins folder to AdditionalLanguages

* Decouple TestRunner from language names and parameters

* Revert calling TestRunner without parameters in .bat files

* Fix formatter tests nogui exception handling

* Small refactoring in Testing.cs and TestRunner fix of working directory
2025-12-21 21:11:52 +03:00
Александр Земляк 9140cf4815
Переименование NewSet<T> в set of T в Intellisense и ошибках компиляции (#3364)
* Fix set type name description for PascalABC.NET

* Improve scope check for NewSet

* Add GetTemplateStringWithoutBracketsFunction

* Add renaming NewSet in compiler (In PrintableName)

* Remove setClassName constant in LanguageInformation

* Comment out BaseScope class in symbol_information.cs

* Change visibility of properties in StorageLocationPicker class
2025-12-08 15:48:18 +03:00
Александр Земляк 63251240fe
Change visibility of properties in StorageLocationPicker class (#3365) 2025-12-08 15:47:31 +03:00
Александр Земляк 770cb4fddb
Исправления некоторых падений тестов в Intellisense (#3363)
* Fix delegate hints

* Fix extensionmethods8.pas test

* Change InstanceCreationContext GetDescription strategy

* Add keywords treated as functions logic in TestForKeyword function
2025-11-29 14:27:33 +03:00
Александр Земляк 4e871c1f3a
Исправление переменных с именем, совпадающим с именами сущностей из других модулей, в SPython (#3360)
* Fix variables with special names declaration in SPython

* Add new syntax tree converters applying flag checking in Intellisense

* Fix IsVariableOrConstant function in Intellisense

* Optimize CollectNamesFromUsedUnits function in Compiler
2025-11-29 14:27:00 +03:00
Mikhalkovich Stanislav c54412c8aa a.Copy для массивов и матриц 2025-11-27 22:06:46 +03:00
Ivan Bondarev 80a314a999 revert 2025-11-27 19:44:20 +01:00
Ivan Bondarev 279e268279 fix 2025-11-27 19:35:58 +01:00
Ivan Bondarev 046deeaff2 intellisense tests in release 2025-11-27 18:24:51 +01:00