capitalized all file names
This commit is contained in:
parent
15a9f79712
commit
f061873ec3
|
@ -16,10 +16,10 @@ signal command(command)
|
||||||
signal started
|
signal started
|
||||||
signal finished
|
signal finished
|
||||||
|
|
||||||
const Constants = preload('res://addons/Wol/core/constants.gd')
|
const Constants = preload('res://addons/Wol/core/Constants.gd')
|
||||||
const WolCompiler = preload('res://addons/Wol/core/compiler/compiler.gd')
|
const WolCompiler = preload('res://addons/Wol/core/compiler/Compiler.gd')
|
||||||
const WolLibrary = preload('res://addons/Wol/core/library.gd')
|
const WolLibrary = preload('res://addons/Wol/core/Library.gd')
|
||||||
const VirtualMachine = preload('res://addons/Wol/core/virtual_machine.gd')
|
const VirtualMachine = preload('res://addons/Wol/core/VirtualMachine.gd')
|
||||||
const StandardLibrary = preload('res://addons/Wol/core/StandardLibrary.gd')
|
const StandardLibrary = preload('res://addons/Wol/core/StandardLibrary.gd')
|
||||||
|
|
||||||
export(String, FILE, '*.wol,*.yarn') var path setget set_path
|
export(String, FILE, '*.wol,*.yarn') var path setget set_path
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
extends Object
|
extends Object
|
||||||
var Value : GDScript = load("res://addons/Wol/core/value.gd")
|
var Value : GDScript = load("res://addons/Wol/core/Value.gd")
|
||||||
|
|
||||||
var name = ''
|
var name = ''
|
||||||
# NOTE: -1 means variable arguments
|
# NOTE: -1 means variable arguments
|
|
@ -1,6 +1,6 @@
|
||||||
extends 'res://addons/Wol/core/library.gd'
|
extends 'res://addons/Wol/core/Library.gd'
|
||||||
|
|
||||||
const Value = preload('res://addons/Wol/core/value.gd')
|
const Value = preload('res://addons/Wol/core/Value.gd')
|
||||||
|
|
||||||
func _init():
|
func _init():
|
||||||
register_function('Add', 2, funcref(self, 'add'), true)
|
register_function('Add', 2, funcref(self, 'add'), true)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
const Constants = preload('res://addons/Wol/core/constants.gd')
|
const Constants = preload('res://addons/Wol/core/Constants.gd')
|
||||||
const Value = preload('res://addons/Wol/core/value.gd')
|
const Value = preload('res://addons/Wol/core/Value.gd')
|
||||||
|
|
||||||
# Function references to handlers
|
# Function references to handlers
|
||||||
var line_handler
|
var line_handler
|
|
@ -1,10 +1,9 @@
|
||||||
extends Object
|
extends Object
|
||||||
class_name Compiler
|
|
||||||
|
|
||||||
const Constants = preload('res://addons/Wol/core/constants.gd')
|
const Constants = preload('res://addons/Wol/core/Constants.gd')
|
||||||
const Lexer = preload('res://addons/Wol/core/compiler/lexer.gd')
|
const Lexer = preload('res://addons/Wol/core/compiler/Lexer.gd')
|
||||||
const Program = preload('res://addons/Wol/core/program.gd')
|
const Program = preload('res://addons/Wol/core/Program.gd')
|
||||||
const Parser = preload('res://addons/Wol/core/compiler/parser.gd')
|
const Parser = preload('res://addons/Wol/core/compiler/Parser.gd')
|
||||||
|
|
||||||
const INVALID_TITLE = '[\\[<>\\]{}\\|:\\s#\\$]'
|
const INVALID_TITLE = '[\\[<>\\]{}\\|:\\s#\\$]'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
extends Object
|
extends Object
|
||||||
class_name Lexer
|
|
||||||
|
|
||||||
const Constants = preload('res://addons/Wol/core/constants.gd')
|
const Constants = preload('res://addons/Wol/core/Constants.gd')
|
||||||
|
|
||||||
const LINE_COMENT = '//'
|
const LINE_COMENT = '//'
|
||||||
const FORWARD_SLASH = '/'
|
const FORWARD_SLASH = '/'
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
extends Object
|
extends Object
|
||||||
|
|
||||||
const Constants = preload('res://addons/Wol/core/constants.gd')
|
const Constants = preload('res://addons/Wol/core/Constants.gd')
|
||||||
const Lexer = preload('res://addons/Wol/core/compiler/lexer.gd')
|
const Lexer = preload('res://addons/Wol/core/compiler/Lexer.gd')
|
||||||
|
const Value = preload('res://addons/Wol/core/Value.gd')
|
||||||
|
|
||||||
var tokens = []
|
var tokens = []
|
||||||
var title = ''
|
var title = ''
|
||||||
|
@ -505,8 +506,6 @@ class IfStatement extends ParseNode:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class ValueNode extends ParseNode:
|
class ValueNode extends ParseNode:
|
||||||
const Value = preload('res://addons/Wol/core/value.gd')
|
|
||||||
const Lexer = preload('res://addons/Wol/core/compiler/lexer.gd')
|
|
||||||
var value
|
var value
|
||||||
|
|
||||||
func _init(parent, parser, token = null).(parent, parser):
|
func _init(parent, parser, token = null).(parent, parser):
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
extends Object
|
extends Object
|
||||||
class_name Constants
|
|
||||||
|
|
||||||
enum ExecutionState {
|
enum ExecutionState {
|
||||||
Stopped,
|
Stopped,
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
extends Node
|
|
||||||
|
|
||||||
const Constants = preload('res://addons/Wol/core/constants.gd')
|
|
||||||
const VirtualMachine = preload('res://addons/Wol/core/virtual_machine.gd')
|
|
||||||
const Value = preload('res://addons/Wol/core/value.gd')
|
|
||||||
|
|
||||||
var _variableStorage
|
|
||||||
|
|
||||||
var _program
|
|
||||||
var library
|
|
||||||
|
|
||||||
var _vm
|
|
||||||
var _visitedNodeCount = {}
|
|
||||||
|
|
||||||
func _init(variableStorage):
|
|
||||||
_variableStorage = variableStorage
|
|
||||||
|
|
||||||
func is_active():
|
|
||||||
return get_exec_state() != Constants.ExecutionState.Stopped
|
|
||||||
|
|
||||||
func set_selected_option(option):
|
|
||||||
_vm.set_selected_option(option)
|
|
||||||
|
|
||||||
func set_node(name = 'Start'):
|
|
||||||
_vm.set_node(name)
|
|
||||||
|
|
||||||
func start():
|
|
||||||
if _vm.executionState == Constants.ExecutionState.Stopped:
|
|
||||||
_vm.resume()
|
|
||||||
|
|
||||||
func resume():
|
|
||||||
if _vm.executionState == Constants.ExecutionState.Running \
|
|
||||||
or _vm.executionState == Constants.ExecutionState.Stopped:
|
|
||||||
return
|
|
||||||
_vm.resume()
|
|
||||||
|
|
||||||
func pause():
|
|
||||||
_vm.pause()
|
|
||||||
|
|
||||||
func stop():
|
|
||||||
_vm.stop()
|
|
||||||
|
|
||||||
func node_exists(name):
|
|
||||||
return _program.nodes.has(name)
|
|
||||||
|
|
||||||
func set_program(program):
|
|
||||||
_program = program
|
|
||||||
_vm.set_program(_program)
|
|
||||||
_vm.reset()
|
|
||||||
|
|
||||||
func get_vm():
|
|
||||||
return _vm
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
extends Object
|
extends Object
|
||||||
|
|
||||||
const FunctionInfo = preload('res://addons/Wol/core/function_info.gd')
|
const FunctionInfo = preload('res://addons/Wol/core/FunctionInfo.gd')
|
||||||
const Constants = preload('res://addons/Wol/core/constants.gd')
|
const Constants = preload('res://addons/Wol/core/Constants.gd')
|
||||||
|
|
||||||
var functions = {}
|
var functions = {}
|
||||||
var virtual_machine
|
var virtual_machine
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
extends Object
|
extends Object
|
||||||
class_name Program
|
|
||||||
|
|
||||||
const Constants = preload('res://addons/Wol/core/constants.gd')
|
const Constants = preload('res://addons/Wol/core/Constants.gd')
|
||||||
|
|
||||||
var name = ''
|
var name = ''
|
||||||
var strings = {}
|
var strings = {}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
extends Object
|
extends Object
|
||||||
|
|
||||||
const Constants = preload('res://addons/Wol/core/constants.gd')
|
const Constants = preload('res://addons/Wol/core/Constants.gd')
|
||||||
|
|
||||||
const NULL_STRING = 'null'
|
const NULL_STRING = 'null'
|
||||||
const FALSE_STRING = 'false'
|
const FALSE_STRING = 'false'
|
||||||
|
|
|
@ -2,7 +2,7 @@ extends Node
|
||||||
|
|
||||||
signal values_changed
|
signal values_changed
|
||||||
|
|
||||||
const Value = preload("res://addons/Wol/core/value.gd")
|
const Value = preload("res://addons/Wol/core/Value.gd")
|
||||||
|
|
||||||
var variables = {}
|
var variables = {}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,5 @@ func _enter_tree():
|
||||||
load('res://addons/Wol/assets/icon.png')
|
load('res://addons/Wol/assets/icon.png')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
func _exit_tree():
|
func _exit_tree():
|
||||||
remove_custom_type('Wol')
|
remove_custom_type('Wol')
|
||||||
|
|
|
@ -12,22 +12,17 @@ _global_script_classes=[ {
|
||||||
"base": "Object",
|
"base": "Object",
|
||||||
"class": "Compiler",
|
"class": "Compiler",
|
||||||
"language": "GDScript",
|
"language": "GDScript",
|
||||||
"path": "res://addons/Wol/core/compiler/compiler.gd"
|
"path": "res://addons/Wol/core/compiler/Compiler.gd"
|
||||||
}, {
|
|
||||||
"base": "Object",
|
|
||||||
"class": "Constants",
|
|
||||||
"language": "GDScript",
|
|
||||||
"path": "res://addons/Wol/core/constants.gd"
|
|
||||||
}, {
|
}, {
|
||||||
"base": "Object",
|
"base": "Object",
|
||||||
"class": "Lexer",
|
"class": "Lexer",
|
||||||
"language": "GDScript",
|
"language": "GDScript",
|
||||||
"path": "res://addons/Wol/core/compiler/lexer.gd"
|
"path": "res://addons/Wol/core/compiler/Lexer.gd"
|
||||||
}, {
|
}, {
|
||||||
"base": "Object",
|
"base": "Object",
|
||||||
"class": "Program",
|
"class": "Program",
|
||||||
"language": "GDScript",
|
"language": "GDScript",
|
||||||
"path": "res://addons/Wol/core/program.gd"
|
"path": "res://addons/Wol/core/Program.gd"
|
||||||
}, {
|
}, {
|
||||||
"base": "Node",
|
"base": "Node",
|
||||||
"class": "Wol",
|
"class": "Wol",
|
||||||
|
@ -36,7 +31,6 @@ _global_script_classes=[ {
|
||||||
} ]
|
} ]
|
||||||
_global_script_class_icons={
|
_global_script_class_icons={
|
||||||
"Compiler": "",
|
"Compiler": "",
|
||||||
"Constants": "",
|
|
||||||
"Lexer": "",
|
"Lexer": "",
|
||||||
"Program": "",
|
"Program": "",
|
||||||
"Wol": ""
|
"Wol": ""
|
||||||
|
|
Reference in a new issue