Skip to content

Releases: PositiveTechnologies/PT.PM

1.6.1

15 Jul 10:24
7c152e1
Compare
Choose a tag to compare

Pull request #135

  • CliProcessorBase refactored.
  • Line-column text spans in JSON files by default.
  • Nullable properties in CliParameters.
  • Support options from config.json.
  • Support --pattern no for patterns ignoring.
  • Added DummyCodeRepository.
  • Better log output, ignore zero time spans for ignored stages.
  • Fixed all unit tests, resolved ignored unit tests.
  • Fixed graph directions while rendering.
  • Added GitExtensions.settings for better integration (AppVeyor status in Git Gui).
  • Strict JSON deserialization mode by default (error if missing class property for excess json property). CLI: support for --not-strict option.

1.6

15 Jul 10:19
90038bb
Compare
Choose a tag to compare
1.6

Pull request #122

  • Cli parameters
    • New --pattern-ids
    • New --dump-code
    • -e - short form for --errors
    • Correct cli parameters processing (not-preprocess-ust, no-indents, no-text-spans).
  • Added CombiningPatternsRepository, fixes #37.
  • Support for several input items in FileCodeRepository and MemoryCodeRepository.
  • ConstructorDeclaration inherits MethodDeclaration, fixes #92.
  • Added new CommaExpression.
  • Fixed calculation of TotalTimeTicks.
  • Try to load code from file if Code is not specified in UST Json.
  • Relative paths in submodules.
  • Removed StringCompressorEscaper.

Pull request #125

  • Support for TextSpan with reference to another CodeFile

Pull request #129

  • Implemented text loading for source code files enumerated in multiTextSpan nodes.

Pull request #130

  • More clear errors messages during deserialization.
  • PT.PM.Cli: --patterns parameter supports .json, .pattern files and raw dsl pattern string.
  • Workflow: loading of source code file from TextSpan with filename.
  • LineColumnTextSpan now have format: [start-line,start-column..end-line,end-column).
  • Dropped JSON case-insensitive keys support.

Pull request #128

  • Support timeout in Detect language method, fixed #127
  • Do not reparse file after language detection, fixed #126
  • PL/SQL parser fixed, JavaScript lexer performance improved.
  • Locks removed from AntlrParser, multithreading optimized.
  • Language detection algorithm improved (consider last error position, but not errors count).

Pull request #133

  • Move PT.PM.Prebuild to a separated repository (actually removed), fixes #4
  • Move projects to .NET Standard, fixes #110
  • Avalonia from nuget, other packages updated
  • Other things cleared & simplified, binary files removed

1.5.2

15 Jul 10:23
Compare
Choose a tag to compare

Pull request #119

  • Excluded coping of test data files.
  • Grammars updated.
  • Json serialization tests reorganized.
  • Added Ust json serialization with the line-column format.
  • Better formatting for ANTLR parse trees.
  • Bugfixes.

Pull request #120

  • TextSpan for reduced nodes and C# conversion fixes.

1.5.1

15 Jul 10:21
f116900
Compare
Choose a tag to compare

Pull requests #107, #108

Ust json as input, #106
Added support for ParseTree and Ust. Other stages will be implemented later, fixed #96

Pull requests #113

  • Implemented graphical dumps both in Cli and Gui, fixed #95
  • Patterns now are generic types, matching code simplified.
  • Json serialization improvements.
  • Cli improvements: using CommandLine instead of FluentCommandLineParser. Added CliParameters.
    • Added LanguageJsonConverter
    • Added TextSpanJsonConverter, shortened TextSpan serialization.
  • Refactorings and simplifications.

Pull request #116

  • Implement fast conversion of linear to line-column locations, fixed #114
  • TextSpan output improved.
  • TextTruncter renamed to PrettyPrinter and improved.
  • More accurate position of parsing errors.
  • Use CodeFile instead string file name in exceptions, fixed #115
  • Fixed --start-cpg parameter processing.
  • Json processing improved:
    • Case insensitive deserialization.
    • Accurate error messages.
  • Added Uncertain language for incorrect or unknown languages.
  • StageHelper removed.
  • Cache clearing and workflow execution.

1.5

27 Oct 13:50
Compare
Choose a tag to compare
1.5
  • Numerous renamings and code clearing
  • More independent language modules using Reflection
  • Json serialization improvements
  • NodeType removed from Ust and Pattern Ust (class name is identifier itself)
  • Added Ust Linq
  • Ust base node now have Parent and Root instead of FileNode
  • Patterns does not depend on Ust
  • Pattern matching algorithms entirely located in PT.PM.Matching
  • Custom hardcoded patterns moved in PT.PM.Patterns
  • Pattern matcher now returns a list of matched locations that map on UST
  • Gui improvements
  • Support of http:// and *.zip code repositories (for tests), #103
  • Added --temp-dir parameter, #104
  • Removed integration tests from project, #102
  • Support of negation operator for languages, #105

Full list of fixed issues and pull requests: 1.5.

1.3

23 Sep 12:15
Compare
Choose a tag to compare
1.3
  • Trim long errors text #73
  • Trim indents for code fragments in matches #73
  • Remove quotes for char to string conversion #77
  • Constant folding: sign + number -> negative number #72
  • Char arrays to string folding: : char[] array = { 'n', 'o', 'n', 'e' } –> string array = "none"; #76
  • DSL improvements:
    • Class declaration support: class : <[X509TrustManager|SSLSocketFactory]> { #88
    • Method declaration support #80
    • Not operator extending. The pattern (class { <{ clone() {...} }> }) <&> (<~>(class : Cloneable {})) means a class declaration that does not implement Cloneable interface but contains method clone. #88
    • Exception type in catch block support: try catch(NullPointerException ) {...} #78
  • PT.PM licence updated #86

1.2.0

28 Jul 15:30
Compare
Choose a tag to compare
  • Added support of ECMAScript 6 (except of iterators and generators).
  • Improved JavaScript parsing with PHP code inserts inside.
  • Some conversion errors fixed.
  • PL/SQL and T-SQL parsers updated.

1.1.0

12 Jul 17:43
Compare
Choose a tag to compare
  • Java8 support
  • Fixed multithread issues
  • GUI settings restoring on startup
  • New cli parameters (see wiki for description):
    • --dump-ust
    • --indented-ust
    • --text-spans-ust
    • --preprocess-ust
  • Dependencies updated

1.0.0

07 Jun 13:27
Compare
Choose a tag to compare
  • Dependencies updated on new and stable versions (ANTLR 4.6.1).
  • Use 4.6.2 .NET for all projects.
  • ANTLR Grammars synched with an official grammars-v4 repository.

0.9.5

26 May 14:51
Compare
Choose a tag to compare
0.9.5 Pre-release
Pre-release
  • Removed excess signatures for ILogger.
  • All exceptions now wrapped.
  • Added IsPattern flag for exceptions.
  • Fixed incorrect string location.
  • Changed default log path (LocalAppData).