Commit graph

30 commits

Author SHA1 Message Date
Александр Земляк 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
Александр Земляк 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
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 8add90aca0
Refactor file searching functions in Compiler (#3111)
* Refactor GetUnitFileName function and used by it

* Revert nested ifs in file searching

* Revert sanity checks

* Return lost checks
2024-05-09 11:58:42 +03:00
AlexanderZemlyak 0ae7595f0d
Implement programming languages integration functionality (#3001)
* Make standardModules Dictionary instead of LanguageId usage

* Create new common string constants for pascal language

* Add LanguagesData class template

* Move some compiler directive string constants to Compiler project

* Extract LanguagesData class to separate file

Also extracted RuntimeServiceModule (IO-modules) management to new functions.

* Fix pabcnetc crashing (KeyNotFoundException)

* Make similar change in pabcnetc_clear

* Return PABCExtensions in DomConverter.cs

* Return compiler string constants to Tree Converter

* Rename MoveSystemUnitForward method

* Rename system unit variable

* Add new parser load error (localized versions)

* Fix pascal language name constant

* Add system units property to parsers

* Add LanguageKits directory with a test file

* Implement language integrator

Был реализован загрузчик комплектов дополнительных языков (всех кроме Pascal). Был пересмотрен подход к реализации ParsersController и этот класс сделан синглтоном. Добавлена загрузка стандартных модулей языков в CompilerOptions.

* Squashed commit of the following:

commit 8f9dc7e5a0
Author: Mikhalkovich Stanislav <miks@math.sfedu.ru>
Date:   Mon Mar 11 20:33:13 2024 +0300

    fix #3050

commit 90363ced45
Author: Mikhalkovich Stanislav <miks@math.sfedu.ru>
Date:   Sun Mar 3 21:37:25 2024 +0300

    Недобитки при сортировке строк

commit c9d7ba7758
Author: Mikhalkovich Stanislav <miks@math.sfedu.ru>
Date:   Sat Mar 2 13:32:14 2024 +0300

    Order и OrderDescending для строк с Ordinal

commit 6fbc0200bf
Author: AlexanderZemlyak <92867056+AlexanderZemlyak@users.noreply.github.com>
Date:   Tue Feb 27 23:21:26 2024 +0300

    Fix interface loop dependency check (#3047)

    Tests for problematic case were added

commit e4d63bfef9
Author: bormant <bormant@mail.ru>
Date:   Tue Feb 27 23:18:25 2024 +0300

    Fix typo: C (ru) -> C (en) (#3042)

commit 0d37232d21
Author: Mikhalkovich Stanislav <miks@math.sfedu.ru>
Date:   Tue Feb 27 19:15:08 2024 +0300

    School - исправление пустого диапазона простых и IP-адресов

commit 9fd4c7f338
Merge: 3cca2a89 6027083b
Author: Ivan Bondarev <ibond84@googlemail.com>
Date:   Wed Feb 21 20:57:10 2024 +0100

    Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet

commit 3cca2a8949
Author: Ivan Bondarev <ibond84@googlemail.com>
Date:   Wed Feb 21 20:56:49 2024 +0100

    fix in formatter
2024-03-13 22:16:40 +03:00
Sun Serega 378dc1162a Error for wrong "/SearchDir" 2023-06-23 17:12:46 +03:00
Sun Serega 433ed56c9f Better valid path checks 2023-03-11 13:45:24 +02:00
Sun Serega bbcccb2fc1 /Locale arg 2022-05-12 20:26:44 +03:00
Mikhalkovich Stanislav 8308779cfe pabcnetcclear - /Version:
dotnet5macos; // PVS 01/2022
2022-01-27 20:27:40 +03:00
Mikhalkovich Stanislav 21ce3e9bf7 Random - добавлены перегрузки для char и Ranges 2021-12-19 18:28:22 +03:00
Mikhalkovich Stanislav 389ed19e56 В консольном компиляторе pabcnetcclear теперь верно распознается файл с путем, начинающимся с / 2021-12-14 21:34:50 +03:00
Sun Serega aaa2db215c don't lower directive name 2021-11-17 17:59:21 +02:00
Sun Serega 94670c408d /Define arg 2021-11-17 16:10:37 +02:00
Ivan Bondarev 44a12870ba #2453 2021-03-01 20:33:02 +01:00
Sun Serega acb27a97d0 OutputHelp minor fix 2021-02-09 18:01:32 +02:00
SunSerega f6c08b9624 Merge branch 'uses-in-new' into SearchDirectoryArg
# Conflicts:
#	Compiler/Compiler.cs
2021-01-24 20:16:11 +02:00
Бондарев Иван e9191db820 pabcnetcclear: pcu errors are not more skipped
pabcnetcclear: display unhandled exceptions or errors without location
2020-10-11 11:43:08 +02:00
SunSerega 9fee3a29d0 SearchDir 2020-07-17 07:02:36 +03:00
ankutalev 087ef3e2db Formatting in hint fixed 2020-03-22 16:01:30 +07:00
ankutalev 134ae76620 Hint changed 2020-03-19 22:25:20 +07:00
ankutalev 5d7584d2f2 Fix incorrect outputDirectory when absolute path used 2020-03-19 00:27:04 +07:00
ankutalev cbcbb7c1fe Added /output:[executable name].
Removed one ":" in directive restriction: it's prevent to use absolute windows path
2020-03-19 00:16:40 +07:00
Mikhalkovich Stanislav e603b1fd6d Mikhalkovich в Copyright
Заготовка для школьного плагина образцов кода
2019-07-28 23:53:15 +03:00
Mikhalkovich Stanislav 8850bbf583 fix #2049 2019-07-26 12:27:20 +03:00
Mikhalkovich Stanislav 90c406e0cc pabcnetcclear - добавление директив в командную строку и переработка диагностики ошибок 2019-03-19 16:45:47 +03:00
Бондарев Иван bcbb605280 bug fix #620 2017-12-29 13:04:02 +01:00
Artem Pelenitsyn 49378a6750 change encoding for all *.pas and *.cs files: cp1251 -> utf-8 2015-12-28 14:25:15 +03:00
Бондарев Иван 09dae92e04 set debug mode as default in console compiler 2015-10-09 16:35:14 +02:00
Бондарев Иван 092d84d664 added license info in source files 2015-06-01 21:15:17 +02:00
Бондарев Иван e6e67c193c initial commit 2015-05-14 21:35:07 +02:00