tinyExpression
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.unlaxer</groupId>
<artifactId>tinyExpression</artifactId>
<version>1.4.15</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.unlaxer</groupId>
<artifactId>tinyExpression</artifactId>
<version>1.4.15</version>
<name>tinyExpression</name>
<packaging>jar</packaging>
<description>TinyExpression implemented with Unlaxer</description>
<url>https://github.com/opaopa6969/tinyexpression</url>
<licenses>
<license>
<name>MIT</name>
<url>https://opensource.org/licenses/MIT</url>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/opaopa6969/tinyexpression.git</connection>
<developerConnection>scm:git:ssh://git@github.com/opaopa6969/tinyexpression.git</developerConnection>
<url>https://github.com/opaopa6969/tinyexpression</url>
</scm>
<developers>
<developer>
<name>opaopa6969</name>
<email>opaopa6969@gmail.com</email>
<id>opaopa6969</id>
<timezone>-9</timezone>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<argLine>--add-opens=java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
<tinyexpression.p4.grammar>${project.basedir}/tools/tinyexpression-p4-lsp-vscode/grammar/tinyexpression-p4.ubnf</tinyexpression.p4.grammar>
<tinyexpression.p4.generated.runtime>${project.basedir}/target/generated-sources/tinyexpression-p4/runtime</tinyexpression.p4.generated.runtime>
<tinyexpression.p4.railroad.output>${project.basedir}/docs/railroad</tinyexpression.p4.railroad.output>
<!-- Railroad SVG generation is documentation-only; skip with -Dtinyexpression.skipRailroad=true -->
<tinyexpression.skipRailroad>false</tinyexpression.skipRailroad>
<!-- Forked JVMs surefire uses to run test classes. Default 1 (serial, stable).
Opt into parallel speed with -Dte.forkCount=0.5C, but note some tests still
share process-wide state and may fail under parallel forks (see findings §6). -->
<te.forkCount>1</te.forkCount>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.unlaxer</groupId>
<artifactId>unlaxer-common</artifactId>
<version>3.0.14</version>
</dependency>
<dependency>
<groupId>org.unlaxer</groupId>
<artifactId>unlaxer-dsl</artifactId>
<version>3.0.14</version>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>24.0.1</version>
</dependency>
<dependency>
<groupId>net.arnx</groupId>
<artifactId>jsonic</artifactId>
<version>1.3.10</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.18.3</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.11.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>generate-tinyexpression-p4-runtime</id>
<phase>generate-sources</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>org.unlaxer.dsl.CodegenMain</mainClass>
<arguments>
<argument>--grammar</argument>
<argument>${tinyexpression.p4.grammar}</argument>
<argument>--output</argument>
<argument>${tinyexpression.p4.generated.runtime}</argument>
<argument>--generators</argument>
<argument>Parser,AST,Mapper,Evaluator</argument>
</arguments>
<includeProjectDependencies>true</includeProjectDependencies>
<includePluginDependencies>false</includePluginDependencies>
</configuration>
</execution>
<execution>
<id>generate-tinyexpression-p4-railroad</id>
<phase>generate-sources</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<skip>${tinyexpression.skipRailroad}</skip>
<mainClass>org.unlaxer.dsl.tools.railroad.RailroadMain</mainClass>
<arguments>
<argument>${tinyexpression.p4.grammar}</argument>
<argument>${tinyexpression.p4.railroad.output}</argument>
<argument>--format</argument>
<argument>svg</argument>
</arguments>
<includeProjectDependencies>true</includeProjectDependencies>
<includePluginDependencies>false</includePluginDependencies>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>add-generated-p4-runtime-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${tinyexpression.p4.generated.runtime}</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<!-- ハング時の安全弁 (issue #19): フォークが45分応答しなければ kill して fail にする -->
<forkCount>${te.forkCount}</forkCount>
<reuseForks>true</reuseForks>
<forkedProcessTimeoutInSeconds>5400</forkedProcessTimeoutInSeconds>
<excludes>
<!-- issue #20: legacy パーサーの指数バックトラックを意図的に繰り返す
ベンチマーク。unlaxer のメモ化 (unlaxer-parser#40) 導入まで除外。
手動実行: mvn test -Dtest=BackendSpeedComparisonTest -Dsurefire.excludes= -->
<exclude>**/BackendSpeedComparisonTest.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<show>protected</show>
<encoding>UTF-8</encoding>
<charset>UTF-8</charset>
<docencoding>UTF-8</docencoding>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>p4-smoke</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<test>org.unlaxer.tinyexpression.evaluator.ast.P4TypedAstEvaluatorTest,org.unlaxer.tinyexpression.evaluator.ast.AstEvaluatorParityCorpusTest,org.unlaxer.tinyexpression.evaluator.ast.AstEvaluatorBackendParityTest,org.unlaxer.tinyexpression.evaluator.ast.ThreeExecutionBackendParityTest,org.unlaxer.tinyexpression.p4.P4BackendParityTest,org.unlaxer.tinyexpression.p4.P4PreferredAstMapperPrecedenceTest</test>
<failIfNoTests>true</failIfNoTests>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>