Commit graph

75 commits

Author SHA1 Message Date
AlexanderZemlyak a6a25d955d
Preprocessor removal (#3113)
* Remove preprocessor

* Delete preprocessor localization files

* Clean up code

* Remove adding directive in EXCLUDETEXT section

* Fix directive adding in EXCLUDETEXT

* Remove preprocessor leftovers

* More clean up

* Rename preprocessor to ifdef_directive

* Fix building tree for formatter variable assigning

* Restore convert4.exe

* Rework adding directive in EXCLUDETEXT

Более логично будет все-таки так.
2024-05-09 19:04:31 +03:00
Sun Serega edf3358b39
Предупреждения для $else и $endif, у которых не совпадает имя дефайна (#3109)
* `$ifdef`: add warnings

* save directive name casing
2024-05-05 18:09:39 +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
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
bormant 84dc17a37c
Fix typo: math -> match (#3040) 2024-02-09 00:03:50 +03:00
Ivan Bondarev be92ef2104 #3023 2024-01-14 14:03:47 +01:00
Ivan Bondarev 2dbe47c613 #2728 2024-01-05 16:34:30 +01:00
Ivan Bondarev 66ba00972f #2785 2024-01-04 15:32:19 +01:00
Ivan Bondarev e6b6a72dc7
Merge pull request #2821 from samuraiGH/TargetFramework
Директива {$TargetFramework}
2023-07-16 12:11:05 +02:00
Mikhalkovich Stanislav 432cb51212 Именованные параметра подчищены.
Исправлены мелкие ошибки
Исправлены сообщения об ошибках в сторону понятности
2023-05-07 14:49:52 +03:00
Ivan Bondarev 110a19ff90 fix #2827 2023-04-02 11:52:04 +02:00
samuraiGH 3e83d3e3b5 добавление директивы TargetFramework 2023-03-12 16:37:50 +03:00
Ivan Bondarev 5c5572897d #2808 2023-03-05 12:21:51 +01:00
samuraiGH 342b8d5272 fix #2494 2023-02-18 12:31:48 +03:00
Sun Serega 258d8d6c6a fix #2725 2022-09-27 17:47:23 +03:00
Ivan Bondarev d602e87f18 #2688
#2678
2022-07-29 12:32:48 +02:00
Mikhalkovich Stanislav 6e34bc00fa TeacherControlPlugin в проекте
GraphABCLinux
Поправил иконку PABCHealth
Изменения в LightPT.pas
Цветной вывод в окне вывода (только для Windows)
Console.OutputEncoding := new System.Text.UTF8Encoding(false); в __RedirectIOMode.pas чтобы в Linux нормально выводилось
2022-07-10 14:51:51 +03:00
Ivan Bondarev 759112e495 #2639 2022-03-20 11:17:00 +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 a1fa68d9a0 #2481 2021-05-13 10:45:30 +02:00
Ivan Bondarev 156f905cfe
Merge pull request #2465 from SunSerega/sealed-abstract-err
Нормальная ошибка при неявно-абстрактом классе
2021-03-31 20:37:06 +02:00
Ivan Bondarev b1adbc3933 some semantic checks for explicit implemented properties 2021-03-28 14:52:18 +02:00
Ivan Bondarev 31cf309e4e fix #2038
fix #2033
2021-03-28 14:08:47 +02:00
Sun Serega eab2825ab8 proper errors for sealed-abstract 2021-03-28 01:08:17 +02:00
Ivan Bondarev 9fdf8bc04b #2035 2021-03-21 14:29:43 +01:00
Ivan Bondarev fbf11aea9a fix #2437 2021-02-08 20:30:22 +01:00
Ivan Bondarev a396a7f630 fix #2422 2021-02-07 11:07:18 +01:00
Ivan Bondarev 80d3095393 #2343 2021-01-31 13:56:33 +01:00
Ivan Bondarev 9a026595ec
Merge pull request #2246 from SunSerega/uses-in-new
Re: Адекватные uses-in
2021-01-24 10:45:03 +01:00
Ivan Bondarev b4ced27c06 fix #1237 2021-01-08 12:14:40 +01:00
Ivan Bondarev 25cf7c0414 fix #2074 2021-01-08 11:53:15 +01:00
SunSerega 067895ab67 Merge branch 'master' into uses-in-new 2020-12-30 13:07:43 +02:00
Ivan Bondarev b65758270c fix #2127 2020-12-27 14:30:36 +01:00
Ivan Bondarev a98e6c570f fix #2112 2020-12-27 13:47:42 +01:00
SunSerega bbb4b169dd Merge branch 'master' into uses-in-new 2020-09-27 19:49:37 +03:00
Бондарев Иван 2c45fe3ae2 fix #1349 2020-08-23 14:28:56 +02:00
SunSerega 30d7156c29 uses-in fix 2020-06-01 06:25:48 +03:00
Бондарев Иван 73fad21530 fix #2030 2019-10-10 20:57:06 +02:00
Kotov 08571a5f09 Больше не падает от / 2019-08-19 04:13:39 +05:00
Бондарев Иван a0ac0a1a3a fix #2075 2019-08-18 13:56:13 +02:00
Бондарев Иван 5b3d5b417f fix #2008 2019-06-21 14:03:27 +02:00
Kotov 953a2e70a0 Директива {$Description 'FileDescription'} 2019-04-23 21:49:27 +03:00
Kotov e414042e8d Директива {$Title ' '}
Добавляет описание файлу. К примеру, в диспетчере задач у программы с данной директивой будет указано описание из директивы.
2019-04-22 22:12:15 +03:00
Kotov 7ded3e1535 Исправление кодировки отступов 2019-04-22 22:10:06 +03:00
Бондарев Иван 3557eab81f fix #1910 2019-04-21 11:08:18 +02:00
Бондарев Иван d7cbac142d fix #1892 2019-03-28 21:09:26 +01:00
Бондарев Иван 61e07273a0 fix #1884 2019-03-28 20:31:27 +01:00
Бондарев Иван 053d012565 fix #1345 2019-01-02 22:40:04 +01:00
Бондарев Иван 3292610a10 fix #1377 2018-12-30 15:37:16 +01:00