Commit graph

124 commits

Author SHA1 Message Date
Mikhalkovich Stanislav 339ffae297 Поправил год - 2025 2025-06-12 17:36:35 +03:00
Mikhalkovich Stanislav 4c56298bfb exit(param) 2025-05-08 22:53:34 +03:00
samuraiGH d491e88aa7
migration to new build system (#3241)
* converting project files into sdk style
* new build commands
* adding new dll into nsis
* removing unused .cs files
2025-03-03 20:34:51 +03:00
Mikhalkovich Stanislav b8fec95599 Большое изменение в Dictionaries
1 to 2 - новый оператор в стиле Котлина для пары Ключ-Значение
Pair - синоним KV. KV - не запоминается
Теперь:
  d := Dict(1 to 2, 3 to 4)
   или
  d := Dict(Pair(1,2),Pair(3,4)

Кроме того
Новые конструкторы
  d := Dict(d1) - копия
  d := Dict(keys,values)
d.Update(d1)
d + d1
d += d1
d + pair
d - Seq(ключ)
d -= Seq(ключ)
2024-07-15 13:50:11 +03:00
nevermind322 f680461234
Assign tuple optimizer (#3162)
* branch init

* add BindCollectLightSymInfo

* moved lightsyminfo to syntaxVisitors

* LIghtSymInfo fixes

* binder 0.1

* Attributes -> SymbolAttributes

* AssignTupleOptimizer -> AssignTupleDesugar

* moved algorithm classes to AssignTupleDesugarAlgorithm namespace

* fixes and refactoring

* LightSymInfo rework

* add rebuildDebug and build units

* enable VarNamesInMethodsWithSameNameAsClassGenericParamsReplacer

* remove CollectFullLightSymInfo call

* bind now return BindResult

* change BindResult path type

* path testing

* fix Current in BindCollectLightSymInfo

* fix Current in BindCollectLightSymInfo

* potential symomyms handling without assigns count minimization

* assign count minimization

* rename AssignTuplesDesugar

* move NewAssignTupleDesugar

* add optimization switch

* delete AssignTupleDesugar project

* remove comments

* Assign tuple optimizer (#3142)

* branch init

* add BindCollectLightSymInfo

* moved lightsyminfo to syntaxVisitors

* LIghtSymInfo fixes

* binder 0.1

* Attributes -> SymbolAttributes

* AssignTupleOptimizer -> AssignTupleDesugar

* moved algorithm classes to AssignTupleDesugarAlgorithm namespace

* fixes and refactoring

* LightSymInfo rework

* add rebuildDebug and build units

* enable VarNamesInMethodsWithSameNameAsClassGenericParamsReplacer

* remove CollectFullLightSymInfo call

* bind now return BindResult

* change BindResult path type

* path testing

* fix Current in BindCollectLightSymInfo

* fix Current in BindCollectLightSymInfo

* potential symomyms handling without assigns count minimization

* assign count minimization

* rename AssignTuplesDesugar

* move NewAssignTupleDesugar

* add optimization switch

* delete AssignTupleDesugar project

* remove comments

* collect symbols from var tuples

* optimize var_tuple_def_statement and assign_var_tuple

* fix

* fix Tuple Visitor

* fix CollectLightSymInfo (#3143)

* branch init

* add BindCollectLightSymInfo

* moved lightsyminfo to syntaxVisitors

* LIghtSymInfo fixes

* binder 0.1

* Attributes -> SymbolAttributes

* AssignTupleOptimizer -> AssignTupleDesugar

* moved algorithm classes to AssignTupleDesugarAlgorithm namespace

* fixes and refactoring

* LightSymInfo rework

* add rebuildDebug and build units

* enable VarNamesInMethodsWithSameNameAsClassGenericParamsReplacer

* remove CollectFullLightSymInfo call

* bind now return BindResult

* change BindResult path type

* path testing

* fix Current in BindCollectLightSymInfo

* fix Current in BindCollectLightSymInfo

* potential symomyms handling without assigns count minimization

* assign count minimization

* rename AssignTuplesDesugar

* move NewAssignTupleDesugar

* add optimization switch

* delete AssignTupleDesugar project

* remove comments

* collect symbols from var tuples

* optimize var_tuple_def_statement and assign_var_tuple

* fix

* fix Tuple Visitor

* 3.9.0.3489

* fix

* Assign tuple optimizer (#3147)

* branch init

* add BindCollectLightSymInfo

* moved lightsyminfo to syntaxVisitors

* LIghtSymInfo fixes

* binder 0.1

* Attributes -> SymbolAttributes

* AssignTupleOptimizer -> AssignTupleDesugar

* moved algorithm classes to AssignTupleDesugarAlgorithm namespace

* fixes and refactoring

* LightSymInfo rework

* add rebuildDebug and build units

* enable VarNamesInMethodsWithSameNameAsClassGenericParamsReplacer

* remove CollectFullLightSymInfo call

* bind now return BindResult

* change BindResult path type

* path testing

* fix Current in BindCollectLightSymInfo

* fix Current in BindCollectLightSymInfo

* potential symomyms handling without assigns count minimization

* assign count minimization

* rename AssignTuplesDesugar

* move NewAssignTupleDesugar

* add optimization switch

* delete AssignTupleDesugar project

* remove comments

* collect symbols from var tuples

* optimize var_tuple_def_statement and assign_var_tuple

* fix

* fix Tuple Visitor

* fix

* add const optimization

* Удалил лишнее

---------

Co-authored-by: Mikhalkovich Stanislav <miks@math.sfedu.ru>
Co-authored-by: Артём Филонов <afilono@sfedu.ru>
Co-authored-by: Sun Serega <sunserega2@gmail.com>
2024-07-08 20:35:57 +03:00
Mikhalkovich Stanislav 50a0fdc4fc Поправил в трех проектах пути к bin
LightPT - Read...(prompt) - больше комбинаций

Loop_If_2_Sum в Tasks1Loops.pas
2024-07-02 21:45:28 +03:00
AlexanderZemlyak d5e9994ff2
Revert pascal language moving to language plugins (#3175)
* Return Parsers folder with standard parsers and move SyntaxTreeConverters back to Core

* Rename PascalLanguage project to PascalABCLanguageInfo

* Fix pascal dll loading
2024-07-02 16:10:50 +03:00
AlexanderZemlyak 342375501b
New languages engine (#3120)
* Implement first version of languages interfaces and classes

ParsersController заменен на LanguageProvider.

* Update ParserTools.csproj

* Update RemoteCompiler.cs

* Update TestRunner

* Rename LanguageIntegrator project to Languages

* Update TestRunner

* Rename Parsers folder

* Rename PascalABCParser.dll to PascalABCLanguage.dll

* Reorganise LanguageIntegrator and rename DocTagsParser

* Update Release Generators

* Update language loading messages

* Update linux version

* Move BaseParser fields to ILanguage interface

* Revert "Update Release Generators"

This reverts commit 26a991c71b81e643d9fbd9a815ddca222768dda9.

* Revert "Rename PascalABCParser.dll to PascalABCLanguage.dll"

* Clean the mess in parser folders

* Organize namespaces properly

* Revert "Rename LanguageIntegrator project to Languages"

* Add new enclosing folders for standard languages

* Organize namespaces of LanguageIntegrator properly

* Rename StandardLanguages to Languages

* Comment the rest of Visual basic source code

* Update OutputPath in pascal parser project

* Move BaseParser methods to IParser

* Restore Pascal parser project initial structure

* Add PascalLanguage project

* Move SyntaxTreeConverters project to Languages\Pascal folder

* Rename SemanticRules in parser project

* Rename Errors1 to Errors in parser project

* Delete LambdaConverter dll from installer

* Update language integrator to load *Language.dll files

* Move lambda converter project to pascal lanuage dir

* Revert "Delete LambdaConverter dll from installer"

This reverts commit dd56f559ebe4f8c4c5c33752d44e6953001b96a5.

* Switch off VBNETParser building

* Delete syntax tree converters controller

* Delete lambda converter dll from repository

* Reorganize syntax tree to semantic tree conversion stage

* Add BaseLanguage class to make language initialization more neat

* Delete syntax tree post processors entity from ILanguage and refactor ABCStatistics calls

* Add new IDocParser interface for documentation comments parser

* Clean up folders

* Add helper data structures to reduce parameters amount in CompileInterface and CompileImplementation

* Add documentation to language classes

* Move Union struct in global namespace and project (ParserTools)

* Add more comments and a safe select language method

* Rename SemanticRules class

* Fix directives format null bug

* Add System.Linq ref to LanguageIntegrator

* Delete SyntaxToSemanticTreeConverter interface

* Add BaseSyntaxTreeConverter

* Call safe select language method in intellisence

* Delete source files providers from parsers

* Rename GetSyntaxTree method

* Change Prebuild tree to be virtual - not abstract

* Refresh documentation a bit

* Add temporary language check for ABCHealth button

* Add parser reference to parser tools

* Move current compilation unit assigning higher to avoid bug with unit check

* Delete null DirectiveInfo's and refactor directives' code

* Add a few more comments
2024-05-25 12:26:32 +03:00
Mikhalkovich Stanislav 98ecc8a608 Тестовый визитор с same_node_type 2024-03-27 12:07:34 +03:00
Mikhalkovich Stanislav 733c9e80e5 merge 2024-01-22 14:15:19 +03:00
Ivan Bondarev aa46226ebc copyrights 2024-01-04 11:04:04 +01:00
Mikhalkovich Stanislav 4bf9c36d49 Исправление реализации (var b := 1) методом синтаксического сахара 2024-01-02 14:43:48 +03:00
nevermind322 a8b1e9035b
LightSymInfo rework (#2994)
* LightSymInfo rework

* add rebuildDebug and build units

* enable VarNamesInMethodsWithSameNameAsClassGenericParamsReplacer

* remove CollectFullLightSymInfo call

* fix

fix

remove CollectFullLightSymInfo call
2023-12-31 12:54:49 +03:00
Mikhalkovich Stanislav fb8384428a Попробовал сделать ковариантность
Обновил год до 2023
2023-01-06 23:09:01 +03:00
Ivan Bondarev d7d6d24d57 copyrights 2022-09-25 11:00:44 +02:00
Mikhalkovich Stanislav 9951c8fb29 XLSX исправленный
pt4pabc.dll с информацией о выполнении
LightPT - изменения
2022-07-19 15:33:13 +03:00
Mikhalkovich Stanislav 758dc2eb65 TeacherControl встроен в число стандартных визиторов 2022-07-18 19:39:13 +03:00
Mikhalkovich Stanislav c6a71a772e Some comments 2022-03-21 17:57:00 +03:00
Mikhalkovich Stanislav a03d33b586 3.8.3 2022-03-08 21:41:46 +03:00
Mikhalkovich Stanislav 4829e24d14 PABCSystem - имена параметров 2022-02-07 18:19:39 +03:00
Mikhalkovich Stanislav e8b4fe6a90 В Linux по умолчанию создание текстовых файлов в Utf8 без BOM 2021-09-26 20:57:15 +03:00
Mikhalkovich Stanislav 70576addb0 not in
if (System.Environment.OSVersion.Version.Major >= 6) and (System.Environment.OSVersion.Version.Minor >= 2) then System.Console.OutputEncoding := Encoding.UTF8;

School - таблица истинности - доп. параметр
2021-09-23 18:29:37 +03:00
Mikhalkovich Stanislav de55f99304 Различные ограничения на функции с параметром [Cache] 2021-08-09 22:37:53 +03:00
Mikhalkovich Stanislav e4a0a33d3e Исправление var (x,y) := a[1:3]; 2021-06-19 12:33:05 +03:00
Mikhalkovich Stanislav 65e7bb188b иСПРАВЛЕН S.ReadInteger(FROM) - теперь с нуля
function_lambda_definition - добавлено поле для неупакованных параметров \(x,y)
Добавлен сахарный визитор - пока для неупакованных параметрво в лямбде - идентификаторов
В грамматике добавлены lambda_unpacked_params
В StandardSyntaxConverter.cs добавлена UnpackLambdaParametersVisitor.New.ProcessNode(root);
2021-03-07 14:03:58 +03:00
Mikhalkovich Stanislav 05f158875d Многомерные срезы - пока без семантического контроля
И интеллисенс a[1,:] неверно показывает тип
2021-02-24 18:41:51 +03:00
Mikhalkovich Stanislav 07df31f762 fix #2401 2021-01-10 07:54:31 +03:00
Mikhalkovich Stanislav da47253f24 fix #1711 2021-01-09 01:31:53 +03:00
Kotov f97323dc6b 2020 to 2021 2021-01-05 06:50:21 +05:00
Mikhalkovich Stanislav b4c5ad785e -2**4 теперь возвращает -16
2**3**2 теперь работает
2020-09-14 21:14:08 +03:00
Mikhalkovich Stanislav c87fe31ff4 Версия 3.7
Интегрирован NUnit
2020-08-26 08:53:11 +03:00
Mikhalkovich Stanislav fc234f7cc4 Исправление ошибки с захватом лямбдой переменной, объявленной в виде var (m,n) := ... 2020-08-15 22:56:19 +03:00
Mikhalkovich Stanislav dc23f3eadd Залил код, в результате которого падает сборка
В принципе, чтобы вернуть - в трёх visit восстановить вначале AddError и включить синтаксический визитор AssignVarTuple

Ещё - ABCStatisticsVisitors.cs - когда откатим - не удалять
2020-08-15 10:14:47 +03:00
Mikhalkovich Stanislav 85b2d98f2e Распаковка последовательности в переменные 2020-07-27 23:13:08 +03:00
Mikhalkovich Stanislav cf6e4ba9bd Исправил пару примеров 2020-07-26 13:07:35 +03:00
Mikhalkovich Stanislav 0c6ff2a3ee fix #2276 2020-07-14 18:55:14 +03:00
Mikhalkovich Stanislav 85181251c6 fix #2282 2020-07-14 13:05:02 +03:00
Mikhalkovich Stanislav 2eddbb8f15 Попытка частично заставить работать одновременно #2277 и #2265 2020-07-11 17:11:27 +03:00
Александр Погорелов 985d35ef5e SystemSlice 2020-05-02 11:44:20 +03:00
Mikhalkovich Stanislav 8545817173 fix #1053
Вложенные безымянные записи теперь снова разрешены, но запрещено захватывать имена из неглобального контекста
2020-03-08 09:28:11 +03:00
Mikhalkovich Stanislav 838dddf8b1 foreach по a..b преобразуется в for - для эффективности 2020-01-05 22:46:12 +03:00
Mikhalkovich Stanislav 15d20463d7 Новый Range в виде a..b 2020-01-04 12:19:36 +03:00
Kotov 61e8b4773c 2020 in copyrights
С наступающим!)
2019-12-25 13:37:51 +03:00
Mikhalkovich Stanislav e603b1fd6d Mikhalkovich в Copyright
Заготовка для школьного плагина образцов кода
2019-07-28 23:53:15 +03:00
Mikhalkovich Stanislav 7059541a44 yield_same_names.pas 2019-07-11 23:21:02 +03:00
Mikhalkovich Stanislav 34c8271d0f доисправления #2042 2019-07-11 22:49:48 +03:00
Mikhalkovich Stanislav d0f350088c format1.png
и
частичное исправление 1639
2019-07-08 21:52:13 +03:00
Mikhalkovich Stanislav bf2a770ad5 fix #1814 2019-06-29 19:28:18 +03:00
Kotov a646615d8e
Copyright changes 2019-06-24 10:58:25 +03:00
Mikhalkovich Stanislav f1fce6b524 Продолжение предыдущего коммита 2019-06-16 10:30:06 +03:00