capitalized all file names

This commit is contained in:
Bram Dingelstad 2021-11-21 15:12:58 +01:00
parent 15a9f79712
commit f061873ec3
15 changed files with 25 additions and 91 deletions

View file

@ -16,10 +16,10 @@ signal command(command)
signal started
signal finished
const Constants = preload('res://addons/Wol/core/constants.gd')
const WolCompiler = preload('res://addons/Wol/core/compiler/compiler.gd')
const WolLibrary = preload('res://addons/Wol/core/library.gd')
const VirtualMachine = preload('res://addons/Wol/core/virtual_machine.gd')
const Constants = preload('res://addons/Wol/core/Constants.gd')
const WolCompiler = preload('res://addons/Wol/core/compiler/Compiler.gd')
const WolLibrary = preload('res://addons/Wol/core/Library.gd')
const VirtualMachine = preload('res://addons/Wol/core/VirtualMachine.gd')
const StandardLibrary = preload('res://addons/Wol/core/StandardLibrary.gd')
export(String, FILE, '*.wol,*.yarn') var path setget set_path

View file

@ -1,5 +1,5 @@
extends Object
var Value : GDScript = load("res://addons/Wol/core/value.gd")
var Value : GDScript = load("res://addons/Wol/core/Value.gd")
var name = ''
# NOTE: -1 means variable arguments

View file

@ -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():
register_function('Add', 2, funcref(self, 'add'), true)

View file

@ -1,7 +1,7 @@
extends Node
const Constants = preload('res://addons/Wol/core/constants.gd')
const Value = preload('res://addons/Wol/core/value.gd')
const Constants = preload('res://addons/Wol/core/Constants.gd')
const Value = preload('res://addons/Wol/core/Value.gd')
# Function references to handlers
var line_handler

View file

@ -1,10 +1,9 @@
extends Object
class_name Compiler
const Constants = preload('res://addons/Wol/core/constants.gd')
const Lexer = preload('res://addons/Wol/core/compiler/lexer.gd')
const Program = preload('res://addons/Wol/core/program.gd')
const Parser = preload('res://addons/Wol/core/compiler/parser.gd')
const Constants = preload('res://addons/Wol/core/Constants.gd')
const Lexer = preload('res://addons/Wol/core/compiler/Lexer.gd')
const Program = preload('res://addons/Wol/core/Program.gd')
const Parser = preload('res://addons/Wol/core/compiler/Parser.gd')
const INVALID_TITLE = '[\\[<>\\]{}\\|:\\s#\\$]'

View file

@ -1,7 +1,6 @@
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 FORWARD_SLASH = '/'

View file

@ -1,7 +1,8 @@
extends Object
const Constants = preload('res://addons/Wol/core/constants.gd')
const Lexer = preload('res://addons/Wol/core/compiler/lexer.gd')
const Constants = preload('res://addons/Wol/core/Constants.gd')
const Lexer = preload('res://addons/Wol/core/compiler/Lexer.gd')
const Value = preload('res://addons/Wol/core/Value.gd')
var tokens = []
var title = ''
@ -505,8 +506,6 @@ class IfStatement extends ParseNode:
pass
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
func _init(parent, parser, token = null).(parent, parser):

View file

@ -1,5 +1,4 @@
extends Object
class_name Constants
enum ExecutionState {
Stopped,

View file

@ -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

View file

@ -1,7 +1,7 @@
extends Object
const FunctionInfo = preload('res://addons/Wol/core/function_info.gd')
const Constants = preload('res://addons/Wol/core/constants.gd')
const FunctionInfo = preload('res://addons/Wol/core/FunctionInfo.gd')
const Constants = preload('res://addons/Wol/core/Constants.gd')
var functions = {}
var virtual_machine

View file

@ -1,7 +1,6 @@
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 strings = {}

View file

@ -1,6 +1,6 @@
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 FALSE_STRING = 'false'

View file

@ -2,7 +2,7 @@ extends Node
signal values_changed
const Value = preload("res://addons/Wol/core/value.gd")
const Value = preload("res://addons/Wol/core/Value.gd")
var variables = {}

View file

@ -9,6 +9,5 @@ func _enter_tree():
load('res://addons/Wol/assets/icon.png')
)
func _exit_tree():
remove_custom_type('Wol')

View file

@ -12,22 +12,17 @@ _global_script_classes=[ {
"base": "Object",
"class": "Compiler",
"language": "GDScript",
"path": "res://addons/Wol/core/compiler/compiler.gd"
}, {
"base": "Object",
"class": "Constants",
"language": "GDScript",
"path": "res://addons/Wol/core/constants.gd"
"path": "res://addons/Wol/core/compiler/Compiler.gd"
}, {
"base": "Object",
"class": "Lexer",
"language": "GDScript",
"path": "res://addons/Wol/core/compiler/lexer.gd"
"path": "res://addons/Wol/core/compiler/Lexer.gd"
}, {
"base": "Object",
"class": "Program",
"language": "GDScript",
"path": "res://addons/Wol/core/program.gd"
"path": "res://addons/Wol/core/Program.gd"
}, {
"base": "Node",
"class": "Wol",
@ -36,7 +31,6 @@ _global_script_classes=[ {
} ]
_global_script_class_icons={
"Compiler": "",
"Constants": "",
"Lexer": "",
"Program": "",
"Wol": ""