* s.ToLines RenameDirectory * Исправление ToLines * Убрал из грамматики узлы await - случайно оставались * Sync `.ToLines` with `System.IO.StringReader` (#3154) * 3.9.0.3494 * add tests * #3152 * #3152 * Don't skip PCU errors in `CompileAllUnits` * fix #3155 * Create the array types outside of any unit/scope * Add `use` test * RobotField - try в блоке создания * Исправлена Range(a, b, step: real) LightPT - CheckOutput может принимать параметры типа последователльность - они будут вытягиваться в одну последовательность Для этого исправлен FlattenElement FlattenOutput применяется автоматически - его теперь не надо вызывать явно TaskLoops поправлен и упрощен в соответствии с CheckOutput * Поправлен LightPT Упрощены TasksArr.pas TasksMatr.pas TasksStr.pas * fix `GetReferenceFileName` dll copy (#3173) * Исправление зависимостей проектов (#3174) * Add workflow to build each project separately * Make `Compiler` depend on `PascalLanguage` and `PascalABCSaushkinParser` 06e595 * Make IDE's depend on `PABCNETC` It's launched as a separate process from IDE * 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 * Поправлены Tasks1Arr.pas Tasks1Begin.pas Tasks1BoolIfCase.pas * Поправил в трех проектах пути к bin LightPT - Read...(prompt) - больше комбинаций Loop_If_2_Sum в Tasks1Loops.pas * #3172 * 3.9.0.3500 Хороший коммит ) * Remove extra tests * Fix dependencies in Compiler project * LightPT - убрал CheckOutputNew TasksArr.pas, TasksStr.pas - правки * #3164 * Убрали зависимость компилятора от парсера Паскаля --------- Co-authored-by: Mikhalkovich Stanislav <miks@math.sfedu.ru> Co-authored-by: Sun Serega <sunserega2@gmail.com> Co-authored-by: Ivan Bondarev <ibond84@googlemail.com>
66 lines
1.6 KiB
C#
66 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using PascalABCCompiler.Errors;
|
|
using PascalABCCompiler.SyntaxTree;
|
|
|
|
namespace PascalABCCompiler.PythonABCParser.Errors
|
|
{
|
|
public class UnexpectedToken : SyntaxError
|
|
{
|
|
private string _message;
|
|
|
|
public UnexpectedToken(string _file_name,SourceContext _source_context,syntax_tree_node _node)
|
|
: base("",_file_name,_source_context,_node)
|
|
{
|
|
_message = string.Format(StringResources.Get("EXPECTED{0}"),"!");
|
|
}
|
|
|
|
public override string Message
|
|
{
|
|
get
|
|
{
|
|
return _message;
|
|
}
|
|
}
|
|
}
|
|
|
|
public class UnexpectedStmt : SyntaxError
|
|
{
|
|
private string _message;
|
|
|
|
public UnexpectedStmt(string _file_name,SourceContext _source_context,syntax_tree_node _node)
|
|
: base("",_file_name,_source_context,_node)
|
|
{
|
|
_message = StringResources.Get("ONE_STMT");
|
|
}
|
|
|
|
public override string Message
|
|
{
|
|
get
|
|
{
|
|
return _message;
|
|
}
|
|
}
|
|
}
|
|
|
|
public class ErrorMsg : SyntaxError
|
|
{
|
|
private string _message;
|
|
|
|
public ErrorMsg(string _file_name,SourceContext _source_context,string _msg)
|
|
: base("",_file_name,_source_context,new syntax_tree_node())
|
|
{
|
|
_message = StringResources.Get(_msg);
|
|
}
|
|
|
|
public override string Message
|
|
{
|
|
get
|
|
{
|
|
return _message;
|
|
}
|
|
}
|
|
}
|
|
}
|