<commit_before><commit_msg>Added start of a dsl for writing AST<commit_after>module Language.F2JS.DSL where
import Data.String
import Language.F2JS.AST
import Language.F2JS.Util

instance IsString Name where
  fromString = Str
instance IsString Expr where
  fromString = Global . fromString
instance IsString Lit where
  fromString = String
instance Num Lit where
  fromInteger = Double . fromInteger
  (+) = undefined
  (*) = undefined
  (-) = undefined
  abs = undefined
  signum = undefined
instance Num Expr where
  fromInteger = Var . fromInteger
  (+) = undefined
  (*) = undefined
  (-) = undefined
  abs = undefined
  signum = undefined
{'fraction_non_alphanumeric': 0.07608695652173914, 'fraction_numerical': 0.004658385093167702, 'mean_word_length': 3.9615384615384617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3794816', 'n_tokens_mistral': 186, 'n_tokens_neox': 182, 'n_words': 63}