Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3e18bc4

Browse files
author
code4wt
committed
first commit
1 parent f634c8d commit 3e18bc4

File tree

7 files changed

+110
-1
lines changed

7 files changed

+110
-1
lines changed

‎.gitignore‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
bin
2+
target/
3+
xtend-gen/
4+
.settings/
5+
.classpath
6+
.project
7+
.DS_Store
8+
.sass-cache/
9+
.idea/
10+
*.iml
11+
12+
# Compiled class file
13+
*.class
14+
15+
# Log file
16+
*.log
17+
18+
# BlueJ files
19+
*.ctxt
20+
21+
# Mobile Tools for Java (J2ME)
22+
.mtj.tmp/
23+
24+
# Package Files #
25+
*.jar
26+
*.war
27+
*.ear
28+
*.zip
29+
*.tar.gz
30+
*.rar
31+
32+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
33+
hs_err_pid*

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# JSONParser
1+
# com.code4wt.jsonparser.JSONParser
22
一个简单的json解析器

‎pom.xml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.code4wt</groupId>
8+
<artifactId>JSONParser</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
12+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.code4wt.jsonparser;
2+
3+
import java.io.IOException;
4+
5+
/**
6+
* Created by imtian on 17/4/23.
7+
*/
8+
public class JSONParser {
9+
10+
public static void main(String[] args) throws IOException {
11+
12+
}
13+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package com.code4wt.jsonparser.tokenizer;
2+
3+
/**
4+
* Created by code4wt on 17/5/10.
5+
*/
6+
public class Token {
7+
8+
private TokenType tokenType;
9+
10+
private String value;
11+
12+
public Token(TokenType tokenType, String value) {
13+
this.tokenType = tokenType;
14+
this.value = value;
15+
}
16+
17+
public TokenType getTokenType() {
18+
return tokenType;
19+
}
20+
21+
public void setTokenType(TokenType tokenType) {
22+
this.tokenType = tokenType;
23+
}
24+
25+
public String getValue() {
26+
return value;
27+
}
28+
29+
public void setValue(String value) {
30+
this.value = value;
31+
}
32+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.code4wt.jsonparser.tokenizer;
2+
3+
/**
4+
* Created by code4wt on 17/5/10.
5+
*/
6+
public enum TokenType {
7+
BEGIN_OBJECT, END_OBJECT,
8+
BEGIN_ARRAY, END_ARRAY,
9+
NULL, NUMBER, STRING, BOOLEAN,
10+
SEP_COLON, SEP_COMMA,
11+
END_DOCOCUMENT
12+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.code4wt.jsonparser.tokenizer;
2+
3+
/**
4+
* Created by code4wt on 17/5/10.
5+
*/
6+
public class Tokenizer {
7+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /