Build Your Own Lisp Learn C and build your own programming language in 1000 lines of code!
![]() |
Ada Lovelace |
Book guide about C language and create own programming language Lisp.
"If you're looking to learn C, or you've ever wondered how to build your own programming language, this is the book for you.
In just a few lines of code, I'll teach you how to use C, and together, we'll start building your very own language.
Along the way we'll learn about the weird and wonderful nature of Lisps, how to develop a real-world project, concisely solve problems, and write beautiful code!
This book is free to read online, so you can get started right away! But for those who want to show their support, or who want the best reading experience, this book is also available for purchase in print format, or for cheap in all major e-book formats."
Tracker - Get links from Html
# Extract links in html content
# Author: Wsricardo
# Blog: wsricardo.blogspot.com
#
import urllib.request
import re
# Url for website address
url = 'your url'
# Function to get html content
# from web site (url site address).
req = lambda url: urllib.request.urlopen(url)
# Html file
with open('page.html', 'r') as f:
data= f.read()
# Use function req to get html content
#data= req( url ).read().decode('utf-8')
# Regular expression to find links
#g = re.findall(r'(?=href=\").*(?=\")', data)
g = re.findall(r"""<a[^>]+href\s*=\s*['"]([^"]+)['"][^>]*>""", data)
print(g)
for i in g:
print(i)
count=0
# Save links in text file
f = open('links.txt', 'w')
for i in g:
f.write(f'{i}\n')
#count += 1
#if count == 10:
# break
f.close()
#with open('page.html', 'w') as f:
# f.write( data )