< program > ::= < expression_list > < expression_list > ::= < expression > < terminator > | < expression > < terminator > < expression_list > < expression > ::= < number > | < string > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local node = parser:entry_stat(lex) | |
local diff_node = copy(node, getmetatable(node)) | |
print(node.node_type) -- returns ast.unspecialized.top.Task | |
print(diff_node.node_type) -- returns ast.unspecialized.top.Task | |
print(node.node_type == ast.unspecialized.top.Task) -- returns False | |
print(diff_node.node_type == ast.unspecialized.top.Task) -- returns False | |
for k, v in pairs(ast.unspecialized.top.Task) do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Given below is a view of what the HDF5 files content can look like. | |
// This information can be found by using the `H5DUMP` command. | |
// File Start | |
HDF5 "point/point.h5" { | |
GROUP "/" { | |
GROUP "1" { | |
ATTRIBUTE "total" { | |
DATATYPE H5T_STD_I32LE | |
DATASPACE SIMPLE { ( 1 ) / ( 1 ) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cmath | |
import matplotlib.pyplot as plt | |
def input_function(x): | |
return cmath.log(x) | |
def input_deravative_function(x): | |
return 1/x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SHA | |
using Dates | |
""" | |
An individual block structure | |
""" | |
struct Block | |
index::Int | |
timestamp::DateTime | |
data::String | |
previous_hash::String |