Skip to content

Commit

Permalink
remove javascript references
Browse files Browse the repository at this point in the history
  • Loading branch information
carocad committed Nov 19, 2019
1 parent 4ff04f2 commit c798963
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://travis-ci.com/carocad/parcera.svg?branch=master)](https://travis-ci.com/carocad/parcera)
[![Clojars Project](https://img.shields.io/clojars/v/carocad/parcera.svg)](https://clojars.org/carocad/parcera)

Grammar-based Clojure(script) parser.
Grammar-based Clojure parser.

Parcera can safely read any Clojure file without any code evaluation.

Expand Down
45 changes: 32 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<groupId>carocad</groupId>
<artifactId>parcera</artifactId>
<packaging>jar</packaging>
<version>0.3.1</version>
<version>0.4.0</version>
<name>parcera</name>
<description>Grammar-based Clojure(script) parser</description>
<description>Grammar-based Clojure parser</description>
<url>https://github.com/carocad/parcera</url>
<licenses>
<license>
Expand All @@ -17,24 +17,48 @@
<url>https://github.com/carocad/parcera</url>
<connection>scm:git:git://github.com/carocad/parcera.git</connection>
<developerConnection>scm:git:ssh://[email protected]/carocad/parcera.git</developerConnection>
<tag>b4ca5c659e55f00781e37bee1dc6bb400460e307</tag>
<tag>4ff04f242eddc4791cfdf2df572f91890c202e6c</tag>
</scm>
<build>
<sourceDirectory>src</sourceDirectory>
<sourceDirectory>src/clojure</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>target</directory>
</testResource>
<testResource>
<directory>resources</directory>
</testResource>
</testResources>
<directory>target</directory>
<outputDirectory>target/classes</outputDirectory>
<plugins/>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/javascript</source>
<source>src/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
Expand Down Expand Up @@ -68,14 +92,9 @@
<version>1.10.1</version>
</dependency>
<dependency>
<groupId>instaparse</groupId>
<artifactId>instaparse</artifactId>
<version>1.4.10</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojurescript</artifactId>
<version>1.10.520</version>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>4.7.1</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(defproject carocad/parcera "0.4.0"
:description "Grammar-based Clojure(script) parser"
:description "Grammar-based Clojure parser"
:url "https://github.com/carocad/parcera"
:license {:name "LGPLv3"
:url "https://github.com/carocad/parcera/blob/master/LICENSE.md"}
:source-paths ["src/clojure" "src/javascript"]
:source-paths ["src/clojure"]
:java-source-paths ["src/java"]
:dependencies [[org.clojure/clojure "1.10.1"]]
:profiles {:dev {:dependencies [[criterium/criterium "0.4.5"] ;; benchmark
Expand Down
5 changes: 3 additions & 2 deletions src/clojure/parcera/core.cljc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
(ns parcera.core
(:require [parcera.antlr.protocols :as antlr]
#?(:clj [parcera.antlr.java :as platform]
:cljs [parcera.antlr.javascript :as platform]))
#?(:clj [parcera.antlr.java :as platform]))
; todo: re-enable once we have javscript support
;:cljs [parcera.antlr.javascript :as platform]))
#?(:cljs (:import goog.string.StringBuffer)))


Expand Down

0 comments on commit c798963

Please sign in to comment.