Skip to content

Commit

Permalink
WIP: 変数宣言+初期化周りの修正。BNFに残タスクあり。
Browse files Browse the repository at this point in the history
  • Loading branch information
r-koubou committed Mar 23, 2018
1 parent 8e98399 commit 848a39b
Show file tree
Hide file tree
Showing 12 changed files with 2,374 additions and 1,946 deletions.
53 changes: 53 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
// IntelliSense を使用して利用可能な属性を学べます。
// 既存の属性の説明をホバーして表示します。
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Launch) with test.ksp",
"projectName": "KSPSyntaxParser",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"classPaths": [
"./lib/args4j.jar",
"./eclipse_compiled/"
],
"mainClass": "net.rkoubou.kspparser.KSPSyntaxParser",
"args": "--source ./.temp/test.ksp"
},
{
"type": "java",
"name": "Debug (Launch) with test.ksp (Parse)",
"projectName": "KSPSyntaxParser",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"classPaths": [
"./lib/args4j.jar",
"./eclipse_compiled/"
],
"mainClass": "net.rkoubou.kspparser.KSPSyntaxParser",
"args": "--source ./.temp/test.ksp --parseonly"
},
{
"type": "java",
"name": "Debug (Launch) with Arguments Prompt",
"projectName": "KSPSyntaxParser",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"classPaths": [
"./lib/args4j.jar",
"./eclipse_compiled/"
],
"mainClass": "net.rkoubou.kspparser.KSPSyntaxParser",
"args": "${command:SpecifyProgramArgs}"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public Object visit( ASTStrAdd node, Object data )
Node p = node.jjtGetParent();
while( p != null )
{
if( p.getId() == JJTVARIABLEDECLARATOR )
if( p.getId() == JJTVARIABLEINITIALIZER )
{
MessageManager.printlnE( MessageManager.PROPERTY_ERROR_SEMANTIC_VARIABLE_INVALID_INITIALIZER_STRINGADD, node.symbol );
AnalyzeErrorCounter.e();
Expand Down
Loading

0 comments on commit 848a39b

Please sign in to comment.