mirror of https://github.com/japl-lang/japl.git
fix copyright info
This commit is contained in:
parent
2a41cd7cea
commit
fa2620ab06
32
common.nim
32
common.nim
|
@ -1,22 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
# Common functionality and objects shared across the entire JAPL ecosystem.
|
|
||||||
# This module exists mainly to avoid recursive dependencies
|
|
||||||
|
|
||||||
|
|
||||||
import tables
|
import tables
|
||||||
|
|
29
compiler.nim
29
compiler.nim
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
## The JAPL bytecode compiler
|
## The JAPL bytecode compiler
|
||||||
|
|
||||||
|
|
29
lexer.nim
29
lexer.nim
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
## A simple tokenizer implementation with one character of lookahead.
|
## A simple tokenizer implementation with one character of lookahead.
|
||||||
|
|
29
main.nim
29
main.nim
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
## Main entry point for the JAPL language
|
## Main entry point for the JAPL language
|
||||||
|
|
||||||
|
|
29
memory.nim
29
memory.nim
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
## This module handles all memory allocation and deallocation for the entire
|
## This module handles all memory allocation and deallocation for the entire
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
## The module dedicated to the Chunk type
|
## The module dedicated to the Chunk type
|
||||||
## A chunk is a piece of bytecode.
|
## A chunk is a piece of bytecode.
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
# A loop object
|
# A loop object
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
import tokentype
|
import tokentype
|
||||||
import valueobject
|
import valueobject
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
# Token types enumeration
|
# Token types enumeration
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
## This module represents the generic interface that JAPL uses internally
|
## This module represents the generic interface that JAPL uses internally
|
||||||
## to represent types. Small-sized entities such as numbers and booleans are
|
## to represent types. Small-sized entities such as numbers and booleans are
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
# WIP - Not working
|
# WIP - Not working
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
## Defines JAPL exceptions
|
## Defines JAPL exceptions
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
#TODO: Implement
|
#TODO: Implement
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
# Implementation for function objects in JAPL.
|
# Implementation for function objects in JAPL.
|
||||||
# In JAPL, functions (like any other entity) are First Class Objects.
|
# In JAPL, functions (like any other entity) are First Class Objects.
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
# WIP - Not working
|
# WIP - Not working
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
#TODO: Implement
|
#TODO: Implement
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
## Base structure for objects in JAPL, all
|
## Base structure for objects in JAPL, all
|
||||||
## types inherit from this simple structure
|
## types inherit from this simple structure
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
# This module implements the interface for strings in JAPL.
|
# This module implements the interface for strings in JAPL.
|
||||||
# Strings are manually-allocated arrays of characters, and are
|
# Strings are manually-allocated arrays of characters, and are
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
## This module takes chunks of bytecode, and prints their contents to the
|
## This module takes chunks of bytecode, and prints their contents to the
|
||||||
## screen.
|
## screen.
|
||||||
|
|
29
vm.nim
29
vm.nim
|
@ -1,19 +1,16 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Copyright 2020 Mattia Giambirtone
|
||||||
# or more contributor license agreements. See the NOTICE file
|
#
|
||||||
# distributed with this work for additional information
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# you may not use this file except in compliance with the License.
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# You may obtain a copy of the License at
|
||||||
# "License"); you may not use this file except in compliance
|
#
|
||||||
# with the License. You may obtain a copy of the License at
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# software distributed under the License is distributed on an
|
# See the License for the specific language governing permissions and
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# limitations under the License.
|
||||||
# KIND, either express or implied. See the License for the
|
|
||||||
# specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
## The JAPL runtime environment, or virtual machine. This is
|
## The JAPL runtime environment, or virtual machine. This is
|
||||||
## a stack-based bytecode VM.
|
## a stack-based bytecode VM.
|
||||||
|
|
Loading…
Reference in New Issue