Commit graph

77 commits

Author SHA1 Message Date
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
AlexanderZemlyak efb4a4338f
New checks for directives added (#3099)
* Extract base classes from ParserTools (local) and GPPGParserHelper

* Fix string resources error

* Extract base class for unexpected token error

* Update ParserTools project file

* Add comments for compiler directives usages in compiler

* Add directives checks

* Move string constants to new project

* Implement scalable directives checks

* Remove known directives from compiler

* Fix PABCSystem namespace error

* Allow region and endregion with no params

* Allow parameters to endif directive

* Delete directive parameters extension checks

* Replace error with warning for uknown directive case

* Fix generate native code (semantic rule) assigning

* Improve error messages for directives

* Rename RunParseThread to SwitchOnIntellisence

Для отладки может требоваться отключение Intellisence на уровне кода. Для понятности метод назван SwitchOnIntellisence.

* Resolve merge conflicts

* Add new compiler errors for unsupported target framework and output file type

* Add documentation to directives checks

* Fix directives check loop
2024-05-04 20:21:50 +03:00
Mikhalkovich Stanislav 1e66c4d740 mre.Set(); в GraphABC.pas
(ttt[0].sym_info as var_definition_node).type = from0.type; В Assign.cs
2024-04-22 22:41:12 +03:00
Ivan Bondarev 019cd031c6 test for #3062 2024-03-31 14:25:10 +02:00
Mikhalkovich Stanislav f2d4637338 assign с first_assignment_defines_type и тестовым примером 2024-03-29 13:53:46 +03:00
Mikhalkovich Stanislav 6bb69dff58 Исправлен код на эквивалентный (старый код не собирался в Linux под msc)
Всё собирается, тесты проходят
2023-05-29 14:54:03 +03:00
Ivan Bondarev 77b5121056 #2833 2023-04-09 10:47:52 +02:00
Ivan Bondarev 052d0e38a9 #2833 2023-04-07 14:09:53 +02:00
Mikhalkovich Stanislav 88c9ac464a fix #2764 2022-12-29 14:16:18 +03:00
Ivan Bondarev 80f8e26011 #2758 2022-12-18 13:55:26 +01:00
Ivan Bondarev 2faf78f84a #2758 2022-12-18 12:04:43 +01:00
Ivan Bondarev 88d903bbed #2724 2022-11-20 12:32:32 +01:00
Mikhalkovich Stanislav e1ae47aee9 TeacherControlPlugin - вылизывание входа 2022-08-07 13:38:40 +03:00
Mikhalkovich Stanislav 3240593d2e Реализован foreach index
Исправлена ошибка for step
Дополнена справка по for step и foreach index
J,yjdkty ntrcnjdsq htlfrnjh? gjlcdtxbdf.obq ыеуз b штвуч rjyntrcnyj d hfvrf[ jlyjq cnhjrb
2022-02-26 12:33:53 +03:00
Ivan Bondarev 1a882ee112 #2600 2022-02-06 11:04:47 +01:00
Ivan Bondarev 9ea935f0d8 #2567 2021-12-24 15:38:39 +01:00
Ivan Bondarev 7e18d092e8 bug fix #2568 2021-11-21 12:43:55 +01:00
Ivan Bondarev 945e34bc3f Временная опция "Использовать компилятор для Intellisense" 2021-11-14 11:34:27 +01:00
Ivan Bondarev 46a4f5d766 #2480 2021-05-16 11:52:32 +02:00
Ivan Bondarev c3da960cbf #2135 2021-01-06 12:11:41 +01:00
Mikhalkovich Stanislav 390b4b8a95 расширенный foreach - семантика 2020-12-03 23:08:23 +03:00
Mikhalkovich Stanislav fce27649d1 fix #2290 2020-10-07 18:41:43 +03:00
Mikhalkovich Stanislav ceee81e1aa fix #2268 2020-06-23 00:35:39 +03:00
Mikhalkovich Stanislav ac3cb68835 fix #2067 2020-06-13 15:35:47 +03:00
Mikhalkovich Stanislav 41316f86d1 fix #2252 2020-06-12 23:31:38 +03:00
Mikhalkovich Stanislav a972270fd0 Исправил неточность в цикле for var i:=f1() to f2() do 2020-05-26 00:13:23 +03:00
Александр Погорелов 78321a9404 fix #1506, #2185 2020-03-09 12:37:13 +03:00
Mikhalkovich Stanislav da4406700f Изменение грамматики - запрет условной операции как тела лямбды (во избежание конфликтов с условным оператором) 2020-01-13 02:01:52 +03:00
Mikhalkovich Stanislav 9aa197df1d a.Indices в foreach - полностью заменяется на for. Семантические проверки сделаны 2020-01-06 12:14:53 +03:00
Mikhalkovich Stanislav 5aa72fac74 В оптимизацию foreach добавлен IList 2020-01-06 11:23:55 +03:00
Mikhalkovich Stanislav c94b1037cc Оптимизация foreach в for для многократного ускорения цикла для IList<T> (массивов, списков)
Не работает в лямбдах! (техническое ограничение)

Плагин запуска ILDasm
2019-12-25 08:43:01 +03:00
Mikhalkovich Stanislav 882109efa0 fix #1994 2019-07-12 11:19:02 +03:00
Mikhalkovich Stanislav b21c2c0aa3 fix #1795 2019-07-12 00:16:19 +03:00
Mikhalkovich Stanislav fe19dfabee fix #1706 2019-06-21 19:43:01 +03:00
Александр Погорелов 4f9ebdb5ae fix #1953, fix #1954, fix #1955 2019-05-25 12:30:15 +03:00
Александр Погорелов 0eabf5a39e fix #1950, #1951 2019-05-25 09:35:52 +03:00
Alexandr Pogorelov 8a432eee6e
Улучшение паттерн матчинга (#1949)
Матчинг констант, таплов, коллекций. Улучшение матчинга по типам.
2019-05-24 10:04:17 +03:00
Mikhalkovich Stanislav fd2571ba2d bug fix #1439 #1511
OnKeyPress WPFObjects
2018-12-22 12:56:57 +03:00
miks1965 d5f268e496 bug fix #1447 2018-11-01 19:57:55 +03:00
Alexander Algasov 64ef16a3fa fix #1422 2018-10-24 23:55:52 +03:00
Alexander Algasov 9e527ba7a4 Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet 2018-10-24 21:18:59 +03:00
Alexander Algasov 694c75454e fix #1421 2018-10-24 21:18:53 +03:00
miks1965 3d95757c71 Убрал тест questionpoint1.pas
Почему-то перестал работать
2018-10-24 16:22:33 +03:00
miks1965 987ab845e8 fix #1409
Разрешил перегруженные деконструкторы
2018-10-21 12:29:36 +03:00
Alexander Algasov 9e7bd5df51 Implement compile-time pattern compatibility check 2018-10-20 18:59:13 +03:00
Alexander Algasov d1b4ba7cee Merge branch 'master' into features/patterns 2018-10-20 18:23:38 +03:00
miks1965 fe063e48c4 fix #1403 2018-10-20 11:20:53 +03:00
miks1965 9022628839 fix #1405 2018-10-20 11:08:27 +03:00
Alexander Algasov fedbe2b478 Merge branch 'master' into features/patterns 2018-09-23 11:11:54 +03:00
Бондарев Иван 3dc45ff403 static classes #772 2018-09-22 17:49:47 +02:00