Skip to content

Commit

Permalink
temporary fixes of #6 (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-koubou committed Mar 23, 2018
1 parent 848a39b commit b26ca15
Show file tree
Hide file tree
Showing 18 changed files with 2,092 additions and 2,279 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<classpath>
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="eclipse_compiled"/>
<classpathentry kind="output" path="classes"/>
<classpathentry kind="lib" path="lib/args4j.jar" exported="true"/>
</classpath>
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ target/
.temp/
.org
.java.org
eclipse_compiled/
classes/
14 changes: 7 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@
"configurations": [
{
"type": "java",
"name": "Debug (Launch) with test.ksp",
"name": "Debug with test.ksp",
"projectName": "KSPSyntaxParser",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"classPaths": [
"./lib/args4j.jar",
"./eclipse_compiled/"
"./classes/"
],
"mainClass": "net.rkoubou.kspparser.KSPSyntaxParser",
"args": "--source ./.temp/test.ksp"
},
{
"type": "java",
"name": "Debug (Launch) with test.ksp (Parse)",
"name": "Debug with test.ksp (+Obfuscate)",
"projectName": "KSPSyntaxParser",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"classPaths": [
"./lib/args4j.jar",
"./eclipse_compiled/"
"./classes/"
],
"mainClass": "net.rkoubou.kspparser.KSPSyntaxParser",
"args": "--source ./.temp/test.ksp --parseonly"
"args": "--source ./.temp/test.ksp --obfuscate"
},
{
"type": "java",
Expand All @@ -44,10 +44,10 @@
"stopOnEntry": false,
"classPaths": [
"./lib/args4j.jar",
"./eclipse_compiled/"
"./classes/"
],
"mainClass": "net.rkoubou.kspparser.KSPSyntaxParser",
"args": "${command:SpecifyProgramArgs}"
}
]
}
}
4 changes: 2 additions & 2 deletions data/lang/message.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#

#-------------------------------------------------------------------------------
# Lexical Error
# Syntax Error
#-------------------------------------------------------------------------------
error.lexical = ${level} ${line} Syntax Error
error.syntax = ${level} ${line} Syntax Error

#-------------------------------------------------------------------------------
# General
Expand Down
4 changes: 2 additions & 2 deletions data/lang/message_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#

#-------------------------------------------------------------------------------
# Lexical Error
# Syntax Error
#-------------------------------------------------------------------------------
error.lexical = ${level} ${line} 文法エラー
error.syntax = ${level} ${line} 文法エラー

#-------------------------------------------------------------------------------
# General
Expand Down
3 changes: 3 additions & 0 deletions rebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

./clean.sh && ./build.sh
4 changes: 2 additions & 2 deletions src/java/net/rkoubou/kspparser/analyzer/MessageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class MessageManager implements AnalyzerConstants
//--------------------------------------------------------------------------
// Lexical
//--------------------------------------------------------------------------
static public final String PROPERTY_ERROR_LEXICAL = "error.lexical";
static public final String PROPERTY_ERROR_SYNTAX = "error.syntax";

//--------------------------------------------------------------------------
// General
Expand Down Expand Up @@ -207,7 +207,7 @@ private MessageManager(){}
static public String expand( ParseException src )
{
return expand(
PROPERTY_ERROR_LEXICAL,
PROPERTY_ERROR_SYNTAX,
Level.ERROR,
src.currentToken.beginLine,
src.currentToken.beginColumn,
Expand Down
Loading

0 comments on commit b26ca15

Please sign in to comment.