Skip to content

Commit

Permalink
v 3.0.1 (generic lexer performance)
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed Apr 17, 2024
1 parent ff42f39 commit dfb86ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions precompute.dtp.State
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/SnapshotState/CallTreeHistoryV3/@EntryValue">[{"CurrentPrefix":{"Path":{"Items":[{"Fuid":5,"IsLogicalRoot":true}]}},"BacktraceSelection":{"Path":[]},"DowntraceSelection":{"Path":[{"Fuid":7,"IsLogicalRoot":true},{"Fuid":2305843009215791107,"MergeType":2},{"Fuid":2305843009218936880}]},"GroupedByThreadBacktraceSelection":{"Path":[]},"GroupedByThreadDowntraceSelection":{"Path":[]}},{"CurrentPrefix":{"Path":{"Items":[{"Fuid":7,"IsLogicalRoot":true},{"Fuid":2305843009215791107,"MergeType":2},{"Fuid":2305843009218936880,"IsLogicalRoot":true}]}},"BacktraceSelection":{"Path":[]},"DowntraceSelection":{"Path":[{"Fuid":2305843009218936880,"IsLogicalRoot":true},{"Fuid":2305843009218936881},{"Fuid":2305843009218937558},{"Fuid":2305843009218937559},{"Fuid":2305843009218937664},{"Fuid":2305843009218937665},{"Fuid":2305843009218937751}]},"GroupedByThreadBacktraceSelection":{"Path":[]},"GroupedByThreadDowntraceSelection":{"Path":[]}}]</s:String>
<s:Int64 x:Key="/Default/SnapshotState/CallTreeHistoryIndex/@EntryValue">1</s:Int64>
<s:String x:Key="/Default/SnapshotState/CallTreeVisualState/@EntryValue">{"Root":{"Key":{},"Children":[{"$id":"1","Key":{"Fuid":{"Value":7}},"Value":{},"Children":[{"$id":"2","Key":{"Fuid":{"Value":2305843009215791107},"MergeType":2},"Value":{},"Children":[{"$id":"3","Key":{"Fuid":{"Value":2305843009218936880}},"Value":{},"Children":[{"$id":"4","Key":{"Fuid":{"Value":2305843009218936881}},"Value":{},"Children":[{"$id":"5","Key":{"Fuid":{"Value":2305843009218937558}},"Value":{"ChangedState":2,"Values":2},"Children":[{"$id":"6","Key":{"Fuid":{"Value":2305843009218937559}},"Value":{},"Children":[{"$id":"7","Key":{"Fuid":{"Value":2305843009218937664}},"Value":{"ChangedState":2,"Values":2},"Children":[{"$id":"8","Key":{"Fuid":{"Value":2305843009218937665}},"Value":{},"Children":[{"$id":"9","Key":{"Fuid":{"Value":2305843009218937751}},"Value":{"ChangedState":2,"Values":2}}]}]}]}]}]}]}]}]}]}}</s:String></wpf:ResourceDictionary>
2 changes: 0 additions & 2 deletions src/sly/lexer/TokenChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public void Add(Token<IN> token)
Tokens.Add(token);
if (token != null)
token.PositionInTokenFlow = Tokens.Count;
_notNullTokens = Tokens.Where(x => x != null).ToList();
_notNullOrEosTokens = Tokens.Where(x => x != null && !x.IsEOS).ToList();
}

[ExcludeFromCodeCoverage]
Expand Down
4 changes: 2 additions & 2 deletions src/sly/sly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Description>#LY is a parser generator halfway between parser combinators and parser generator like ANTLR</Description>
<Authors>b3b00</Authors>
<version>3.0.0</version>
<version>3.0.1</version>
<PackageProjectUrl>https://github.com/b3b00/sly</PackageProjectUrl>
<RepositoryUrl>https://github.com/b3b00/sly</RepositoryUrl>
<License>https://github.com/b3b00/sly/blob/master/LICENSE</License>
<PackageVersion>3.0.0</PackageVersion>
<PackageVersion>3.0.1</PackageVersion>
<ApplicationIcon/>
<OutputType>Library</OutputType>
<StartupObject/>
Expand Down

0 comments on commit dfb86ea

Please sign in to comment.